Re: [Zope3-Users] Accessing an attribute of 'context'
On Monday 20 February 2006 06:58, Frank Burkhardt wrote: > Doesn't work: self.context.__getattribute__('myattribute') That's because __getattribute__ has no security declaration. Anyways you should not use it this way anyways. Frank's response should do the trick. Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Accessing an attribute of 'context'
On 2/20/06, Frank Burkhardt <[EMAIL PROTECTED]> wrote: > Works: self.context.myattribute > > Works: removeSecurityProxy(self.context).__getattribute__('myattribute') > > What I want to do: > > Doesn't work: self.context.__getattribute__('myattribute') getattr(self.context, 'myattribute') -- Lennart Regebro, Nuxeo http://www.nuxeo.com/ CPS Content Management http://www.cps-project.org/ ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users