daemon/core/session.py
def writestate(self, state):
        ''' Write the current state to a state file in the session dir.
        '''
        try:
            f = open(os.path.join(self.sessiondir, "state"), "w")
            f.write("%d %s\n" % (state, coreapi.state_name(state)))
            f.close()
        except Exception, e:
            self.warn("Error writing state file: %s" % e)
 Write the current state to a state file in the session dir.
        
Write the current state to a state file in the session dir.
Write the current state to a state file in the session dir .
def writestate(self, state):
        try:
            f = open(os.path.join(self.sessiondir, "state"), "w")
            f.write("%d %s\n" % (state, coreapi.state_name(state)))
            f.close()
        except Exception, e:
            self.warn("Error writing state file: %s" % e)
def writestate ( self , state ) : try : f = open ( os . path . join ( self . sessiondir , "state" ) , "w" ) f . write ( "%d %s\n" % ( state , coreapi . state_name ( state ) ) ) f . close ( ) except Exception , e : self . warn ( "Error writing state file: %s" % e )
Write the current state to a state file in the session dir.
Write the current state to a state file in the session dir .
''' Write the current state to a state file in the session dir.
        '''
self
state