[Zope] accessing object from a list constructed in __init__.py

Alexis Roda alexis.roda.villalonga at gmail.com
Sat Jul 22 19:27:09 EDT 2006


En/na kevin7kal ha escrit:
> Ok, thank you for that.
> I can create the list of objects from the __of__(self) attribute without 
> the wrapper error now,
> but I still cannot access that attribute through zope.

Your description is vague. A traceback could be useful.

Maybe the problem is security related. Not sure, I'm still not 
acquainted with zope + new style classes + five. To test it add:

__allow_access_to_unprotected_attributes__ = 1

to class1, class2 and Zclass2 definitions.

OTOH Zclass2.myZclass() lacks a docstring


Some unrelated notes:

Zclass2.__init__ shouldn't return anything

SimpleItem inherits from Acquisition.Implicit, and class2 inherits from 
Acquisition.Explicit. Making Zclass2 inherit from Acquisition.Explicit 
is both redundant and useless.




HTH


More information about the Zope mailing list