| Home | Trees | Indices | Help |
|
|---|
|
|
zope.interface.Interface --+
|
IRemoteReference
This marks a RemoteReference.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
_InterfaceClass__attrs =
|
|||
__bases__ =
|
|||
__identifier__ =
|
|||
__iro__ =
|
|||
__name__ =
|
|||
__sro__ =
|
|||
_implied =
|
|||
dependents = <WeakKeyDictionary at 139785036>
|
|||
|
Inherited from |
|||
|
|||
Register a callback to run when we lose this connection. The callback will be invoked with whatever extra arguments you provide to this function. For example:
def my_callback(name, number):
print name, number+4
cookie = rref.notifyOnDisconnect(my_callback, 'bob', number=3)
This function returns an opaque cookie. If you want to cancel the notification, pass this same cookie back to dontNotifyOnDisconnect: rref.dontNotifyOnDisconnect(cookie) Note that if the Tub is shutdown (via stopService), all notifyOnDisconnect handlers are cancelled. |
Invoke a method on the remote object with which I am associated. I always return a Deferred. This will fire with the results of the method when and if the remote end finishes. It will errback if any of the following things occur: the arguments do not match the schema I believe is in use by the far end (causes a Violation exception) the connection to the far end has been lost (DeadReferenceError) the arguments are not accepted by the schema in use by the far end (Violation) the method executed by the far end raises an exception (arbitrary) the return value of the remote method is not accepted by the schema in use by the far end (Violation) the connection is lost before the response is returned (ConnectionLost) the return value is not accepted by the schema I believe is in use by the far end (Violation) |
Invoke a method on the remote object with which I am associated. This form is for one-way messages that do not require results or even acknowledgement of completion. I do not wait for the method to finish executing. The remote end will be instructed to not send any response. There is no way to know whether the method was successfully delivered or not. I always return None. |
|
|||
_InterfaceClass__attrs
|
__iro__
|
__sro__
|
_implied
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Tue Oct 14 18:27:47 2008 | http://epydoc.sourceforge.net |