Re: How to get the value of a remote class object?
Irmen de Jong <[email protected]> Wed, 15 Jan 2014 21:03:59 +0100
| Newsgroups | gmane.comp.python.pyro |
|---|---|
| Message-ID | <[email protected]> |
On 14-1-2014 22:20, Richard van Bemmelen wrote: > This may look trivial. I have a server running on another machine. It is a class with > some functions and properties, like .status. ( a string) > In a client I would like to print this value, but I get: > <Pyro4.core._RemoteMethod object at 0x101adbb50> > > Am I overlooking something? Hi Richard. Pyro4 doesn't provide direct remote attribute access, only remote method calls. Either provide an explicit getter method, or perhaps design a less fine grained remote interface by grouping a set of attributes in a single get_properties() method for instance...? There is an option to enable something called 'object traversal' on the server, but it will still only work for a method call in the end. Read more at http://pythonhosted.org/Pyro4/security.html?highlight=dottednames#dotted-names-object-traversal Irmen ------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk