def handleGetResultSuccess(self, result):
     try:
         serial = serialized.PickleSerialized('RESULT')
         serial.packObject(result)
     except pickle.PickleError:
         self.handleGetResultFailure(Failure())
     else:
         self.sendPickleSerialized(serial)
         self.getResultOK()
 def handleGetResultFailure(self, reason):
     # I am not sure we need to catch this PickleError
     try:
         serial = serialized.PickleSerialized('FAILURE')
         serial.packObject(reason)
     except pickle.PickleError:
         self.getResultFail()
     else:
         self.sendPickleSerialized(serial)
         self.getResultOK()
 def handleSerial_PICKLE(self, package):
     self.nextHandler = self.handleIncomingSerialized
     serial = serialized.PickleSerialized(self.workVars['serialKey'])
     serial.addToPackage(package)
     self.workVars['serialsList'].append(serial)
 def handlePushing_PICKLE(self, package):
     self.nextHandler = self.handlePushing
     serial = serialized.PickleSerialized(self.workVars['pushKey'])
     serial.addToPackage(package)
     self.workVars['pushSerialsList'].append(serial)