Re: Pyro and class init() with another class instance
Daniel Krause <m.daniel.krause-gM/[email protected]>
| Newsgroups | gmane.comp.python.pyro |
|---|---|
| Message-ID | <CAMiLiKhE6Ze=TK+d93yNvTaiqvG==iXJCb67HpaDWhSWbogVLg@mail.gmail.com> |
Thank you for the hint, now I can use the methods. And I'll think about a way to avoid dotted names. Daniel 2013/2/22 Irmen de Jong <[email protected]> > On 20-2-2013 20:19, Daniel Krause wrote: > > Hello, > > > > I am new to Pyro, and I feel I need some advice. > > With one of my first test scripts I run into problems when I try to use > a method of an > > class object from inside another class. > > a.method() works > > b.a.method() is not working > > My guess is you encountered Pyro's default security setting regarding > "dotted names > lookup". This is not allowed by default (and Pyro considers the full > "dotted name" as a > single attribute on your proxy - which will raise the AttributeError). > > You can change this behavior by setting the DOTTEDNAMES config item which > enables the > "correct" way to deal with those dotted names, but at the same time that > opens a > possible security hole. That's why the feature is disabled by default. For > more > information, read this paragraph in the documentation: > > http://pythonhosted.org/Pyro4/security.html?highlight=dotted#dotted-names-object-traversal > > > Hope this helps! > > Irmen de Jong > > > > ------------------------------------------------------------------------------ > 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 > _______________________________________________ > Pyro-core mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/pyro-core > ------------------------------------------------------------------------------ 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 _______________________________________________ Pyro-core mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pyro-core