示例#1
0
 def catch_xmlrpc(self, method, *args):
     """Handler for unhandled requests."""
     log.error("ERROR: Missing method: %s%r", method, args)
     #raise xmlrpc.Fault(123, "Undefined procedure %s." % method)
     self.main.send_evt(event.output(("ERROR: UNHANDLED RPC" , method, args),
         out_handle='xmlrpc'))
     return "Error: Server can not handle command %s" % method
示例#2
0
 def catch_xmlrpc(self, method, *args):
     """Handler for unhandled requests."""
     log.error("ERROR: Missing method: %s%r", method, args)
     #raise xmlrpc.Fault(123, "Undefined procedure %s." % method)
     self.main.send_evt(
         event.output(("ERROR: UNHANDLED RPC", method, args),
                      out_handle='xmlrpc'))
     return "Error: Server can not handle command %s" % method
示例#3
0
 def write(self, data):
     self.send(event.output(data, out_handle=self._handle))
     return None
示例#4
0
 def write(self, data):
     self.send(event.output(data, out_handle=self._handle))
     return None