Re: Pyro and class init() with another class instance
Irmen de Jong <[email protected]>
| Newsgroups | gmane.comp.python.pyro |
|---|---|
| Message-ID | <[email protected]> |
On 24-2-2013 19:42, Daniel Krause wrote: > Thank you for the hint, now I can use the methods. > And I'll think about a way to avoid dotted names. > > Daniel > Glad it works now! You could avoid the use of dotted names by adding methods to the Pyro object that operate on the underlying attributes, instead of accessing them directly. So this: car.door.lock.open() could perhaps become: car.get_door_lock().open() or even: car.open_door_lock() Do be aware of what Pyro treats as a remote object and what will be a local copy. Irmen ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb