[Zope] Follow-up to aq_parent(aq_inner(self))-question

Jan-Ole Esleben esleben at gmail.com
Sun Jul 24 09:27:32 EDT 2005


Hi!

How can I get the product's path while instantiating it? Shouldn't
this information exist somewhere? aq_parent(aq_inner(self)) returns
None, which isn't totally unexpected since __init__ isn't strictly a
Zope method and thus doesn't necessarily have a Zope method's context.

(I need, from the __init__ method of a product, to find out its
instantiation path in the ZODB.)

TIA,
Ole


More information about the Zope mailing list