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

2006-02-20 Thread Stephan Richter
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 R

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

2006-02-20 Thread Lennart Regebro
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') -- Le