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.

Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to