[Zope-dev] Re: Problems with non-zope object attribute access

2005-03-11 Thread Max M
Dario Lopez-Kästen wrote: but I still get The container has no security assertions. Access to 'lname' of (Products.pdbapi.person.Person instance at 0x03449DA0) denied. errors when I try to access the attributes of a person object in the list. What about wrapping them with something like? class

[Zope-dev] Re: Problems with non-zope object attribute access

2005-03-11 Thread Max M
Dario Lopez-Kästen wrote: I have tried the following in my product class: def _zopify(self, o): # wrap object o in a an Acquisition.ImplicitAcquisitionWrapper # add __allow_access_to_unprotected_subobjects = 1 # Return o

Re: [Zope-dev] Re: Problems with non-zope object attribute access

2005-03-11 Thread Dario Lopez-Kästen
Max M wrote: btw. if setting __allow_access_to_unprotected_subobjects = 1 on the object doesn't work, the ImplicitAcquisitionWrapper most likely sets it to something else. have you tried changing the order? w = Acquisition.ImplicitAcquisitionWrapper(o, self)