예제 #1
0
파일: async.py 프로젝트: stbenjam/gofer
 def __init__(self, document):
     """
     :param document: The received document.
     :type document: Document
     """
     AsyncReply.__init__(self, document)
     reply = Return(document.result)
     self.exval = RemoteException.instance(reply)
     self.xmodule = reply.xmodule,
     self.xclass = reply.xclass
     self.xstate = reply.xstate
     self.xargs = reply.xargs
예제 #2
0
파일: async.py 프로젝트: splice/gofer
 def __init__(self, envelope):
     """
     @param envelope: The received envelope.
     @type envelope: L{Envelope}
     """
     AsyncReply.__init__(self, envelope)
     reply = Return(envelope.result)
     self.exval = RemoteException.instance(reply)
     self.xmodule = reply.xmodule,
     self.xclass = reply.xclass
     self.xstate = reply.xstate
     self.xargs = reply.xargs
예제 #3
0
파일: async.py 프로젝트: jortel/gofer
 def __init__(self, document):
     """
     :param document: The received document.
     :type document: Document
     """
     AsyncReply.__init__(self, document)
     reply = Return(document.result)
     self.exval = RemoteException.instance(reply)
     self.xmodule = reply.xmodule,
     self.xclass = reply.xclass
     self.xstate = reply.xstate
     self.xargs = reply.xargs
예제 #4
0
 def on_reply(self, document):
     """
     Handle the reply.
     :param document: The reply document.
     :type document: Document
     :return: The matched reply document.
     :rtype: Document
     """
     reply = Return(document.result)
     if reply.succeeded():
         return reply.retval
     else:
         raise RemoteException.instance(reply)
예제 #5
0
파일: policy.py 프로젝트: jortel/gofer
 def on_reply(self, document):
     """
     Handle the reply.
     :param document: The reply document.
     :type document: Document
     :return: The matched reply document.
     :rtype: Document
     """
     reply = Return(document.result)
     if reply.succeeded():
         return reply.retval
     else:
         raise RemoteException.instance(reply)