Ejemplo n.º 1
0
 def _marshaled_dispatch(self, data, responseHandler, headers):
     params, method = xmlrpc_null.loads(data)
     if self.auth:
         self.auth.setHeaders(headers)
     # generate response
     try:
         self._dispatch(method, self.auth, responseHandler, params)
     except xmlrpclib.Fault, fault:
         responseHandler.sendResponse(fault)
Ejemplo n.º 2
0
 def _marshaled_dispatch(self, data, responseHandler, headers):
     params, method = xmlrpc_null.loads(data)
     if self.auth:
         self.auth.setHeaders(headers)
     # generate response
     try:
         self._dispatch(method, self.auth, responseHandler, params)
     except xmlrpclib.Fault, fault:
         responseHandler.sendResponse(fault)
Ejemplo n.º 3
0
 def request(self, host, handler, request_body, verbose=0):
     params, method = xmlrpc_null.loads(request_body)
     host._dispatch(method, (None, self, params))
     return (self._response,)
Ejemplo n.º 4
0
 def loadPayloadFromString(self, frz):
     d = xmlrpc_null.loads(frz)[0][0]
     self.loadPayloadFromDict(d)
     self.payload._thawed = True
Ejemplo n.º 5
0
 def loadFromFile(class_, path):
     jobStr = bz2.BZ2File(path).read()
     jobDict, = loads(jobStr)[0]
     return class_.__thaw__(jobDict)
Ejemplo n.º 6
0
 def loadPayloadFromString(self, frz):
     d = xmlrpc_null.loads(frz)[0][0]
     self.loadPayloadFromDict(d)
     self.payload._thawed = True
Ejemplo n.º 7
0
 def loadFromFile(class_, path):
     jobStr = bz2.BZ2File(path).read()
     jobDict, = loads(jobStr)[0]
     return class_.__thaw__(jobDict)
Ejemplo n.º 8
0
 def request(self, host, handler, request_body, verbose=0):
     params, method = xmlrpc_null.loads(request_body)
     host._dispatch(method, (None, self, params))
     return (self._response, )