[Zope3-Users] Accessing an attribute of 'context'
Lennart Regebro
regebro at gmail.com
Mon Feb 20 08:02:51 EST 2006
On 2/20/06, Frank Burkhardt <fbo2 at gmx.net> 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/
More information about the Zope3-users
mailing list