Beispiel #1
0
 def packageSuccess(self, obj):    
     serial = pickle.dumps(obj, 2)
     return xmlrpc.Binary(serial)
 def set_properties(self, properties, targets='all', block=True):
     binPackage = xmlrpc.Binary(pickle.dumps(properties, 2))
     d = self._proxy.callRemote('set_properties', binPackage, targets, block)
     d.addCallback(self.unpackage)
     return d
 def push_function(self, namespace, targets='all', block=True):
     cannedNamespace = canDict(namespace)
     binPackage = xmlrpc.Binary(pickle.dumps(cannedNamespace, 2))
     d = self._proxy.callRemote('push_function', binPackage, targets, block)
     d.addCallback(self.unpackage)
     return d
 def push_serialized(self, namespace, targets='all', block=True):
     binPackage = xmlrpc.Binary(pickle.dumps(namespace, 2))
     d =  self._proxy.callRemote('push_serialized', binPackage, targets, block)
     d.addCallback(self.unpackage)
     return d
Beispiel #5
0
 def packageSuccess(self, obj):
     # print 'returning: ',obj
     serial = pickle.dumps(obj, 2)
     return xmlrpc.Binary(serial)