Python: module rox.master_proxy

rox.master_proxy | index

`This module allows a caller to invoke methods on another process.
It is really part of the proxy module, but separate because it imports some GTK
functions which a slave must not do.
EXPERIMENTAL.`

Classes
`` |  | __builtin__.object MasterObject exceptions.Exception(exceptions.BaseException) LostConnection rox.proxy.Proxy MasterProxy rox.tasks.Blocker RequestBlocker
class LostConnection(exceptions.Exception)
`` |
class MasterObject(__builtin__.object)
`` | `Invoking a method on a MasterObject invokes the corresponding method on the slave object. The return value is a ResponseBlocker from which the response can be read.`
| Methods defined here: __init__(self, master) finish_proxy(self) `Calls MasterProxy.finish() for our MasterProxy`
class MasterProxy(rox.proxy.Proxy)
`` | `Invoking operations on MasterProxy.root will invoke the same operation on the SlaveProxy's slave_object.`
| Methods defined here: __init__(self, to_slave, from_slave) lost_connection(self)
class RequestBlocker(rox.tasks.Blocker)
`` | `The blocker is triggered when the slave object sends a reply to our method call. You can then call get() to get the result, eg: blocker = master.method() yield blocker print blocker.result If the remote method raised an exception, accessing 'isresult' will raise it rather than returning it.`
| Methods defined here: __init__(self, master, serial) add(self, data) `Store the result and trigger our blocker.` Properties defined here: result result getter = _error(self)