[Zope3-Users] Accessing an attribute of 'context'

Frank Burkhardt fbo2 at gmx.net
Mon Feb 20 06:58:17 EST 2006


Hi,

How can I access an attribute of a BrowserView's context if the
attribute's name is not hardcoded?

Example:

 Works: self.context.myattribute
 
 Works: removeSecurityProxy(self.context).__getattribute__('myattribute')

What I want to do:
 
 Doesn't work: self.context.__getattribute__('myattribute')


Regards,

Frank


More information about the Zope3-users mailing list