コード例 #1
0
 def __init__(self, real_merger_config=True):
     
     self.state = CasterState()
     
     self.clip = {}
     
     self.history = RecognitionHistoryForWSR(20)
     if not settings.WSR:
         self.history = RecognitionHistory(20)
         self.history.register()
     self.state.set_stack_history(self.history)
     self.preserved = None
     
     self.timer = TimerForWSR(0.025)
     if not settings.WSR:
         from dragonfly.timer import _Timer
         self.timer = _Timer(0.025)
     
     self.comm = Communicator()
     
     self.dep = DependencyMan()
     
     self.macros_grammar = Grammar("recorded_macros")
     
     self.merger = CCRMerger(real_merger_config)
コード例 #2
0
ファイル: grids.py プロジェクト: syfenx/Caster
 def setup_xmlrpc_server(self):
     self.server_quit = 0
     comm = Communicator()
     self.server = SimpleXMLRPCServer(
         (Communicator.LOCALHOST, comm.com_registry["grids"]),
         allow_none=True)
     self.server.register_function(self.xmlrpc_kill, "kill")
コード例 #3
0
 def setup_xmlrpc_server(self): 
     self.server_quit = 0
     comm = Communicator()
     self.server = SimpleXMLRPCServer((Communicator.LOCALHOST, comm.com_registry["hmc"]), allow_none=True)
     self.server.register_function(self.xmlrpc_get_message, "get_message")
     self.server.register_function(self.xmlrpc_complete, "complete")
     self.server.register_function(self.xmlrpc_kill, "kill")
コード例 #4
0
ファイル: stickylist.py プロジェクト: gitter-badger/caster
 def setup_XMLRPC_server(self): 
     self.server_quit = 0
     comm = Communicator()
     self.server = SimpleXMLRPCServer(("127.0.0.1", comm.com_registry["sticky_list"]), allow_none=True)
     self.server.register_function(self.xmlrpc_kill, "kill")
     self.server.register_function(self.xmlrpc_add_symbol, "add_symbol")
     self.server.register_function(self.xmlrpc_remove_symbol, "remove_symbol")
     self.server.register_function(self.xmlrpc_clear, "clear")
コード例 #5
0
 def setup_XMLRPC_server(self):
     self.server_quit = 0
     comm = Communicator()
     self.server = SimpleXMLRPCServer(
         ("127.0.0.1", comm.com_registry["status"]), allow_none=True)
     self.server.register_function(self.xmlrpc_kill, "kill")
     self.server.register_function(self.xmlrpc_hint, "hint")
     self.server.register_function(self.xmlrpc_text, "text")
コード例 #6
0
 def setup_XMLRPC_server(self):
     self.server_quit = 0
     comm = Communicator()
     self.server = SimpleXMLRPCServer(
         ("127.0.0.1", comm.com_registry["hmc"]), allow_none=True)
     self.server.register_function(self.xmlrpc_do_action, "do_action")
     self.server.register_function(self.xmlrpc_complete, "complete")
     self.server.register_function(self.xmlrpc_get_message, "get_message")
     self.server.register_function(self.xmlrpc_kill, "kill")
コード例 #7
0
    def __init__(self):

        self.state = None
        self.clip = {}
        self.sticky = []
        self.history = []
        if not settings.WSR:
            self.history = RecognitionHistory(20)
            self.history.register()
        self.preserved = None

        self.comm = Communicator()
        self.intermediary = StatusIntermediary(self.comm)
        self.timer = TimerForWSR(0.025)
        if not settings.WSR:
            from dragonfly.timer import _Timer
            self.timer = _Timer(0.025)
        self.dep = DependencyMan()

        self.macros_grammar = Grammar("recorded_macros")
        self.noderules = []