Exemple #1
0
 def __init__(self, factory, pid):
     assert isinstance(factory, AgentFactory)
     BaseServer.__init__(self, factory, pid)
     self._state = STATE_NONE
     self.setAction(ActionAbort(self), 'reset', 'clear')
     self.setAction(ActionBackup(self))
     self.setAction(ActionClose(self))
     self.setAction(ActionExclude(self), 'exc')
     self.setAction(ActionInclude(self), 'inc')
     self.setAction(ActionInit(self))
     self.setAction(ActionNext(self))
     self.setAction(ActionQuit(self), 'exit')
     self.setAction(ActionSession(self))
     self.setAction(ActionState(self))
     self.setState(STATE_NONE)
Exemple #2
0
 def __init__(self, factory, pid):
     assert isinstance(factory, ServerFactory)
     BaseServer.__init__(self, factory, pid)
     self.storage = self.factory.storage
     self.setAction(ActionBackup(self))
     self.setAction(ActionQuit(self), "exit")