Ira Hochman writes:
 > How does one retrieve the equivalent of PARENTS[-1] from within a Python
 > Product in Zope?
ZPublisher places "REQUEST" at the top of the acquisition chain.
"PARENTS" is an attribute of "REQUEST".

Therefore, you should be able to simple use "self.PARENTS[-1]".

If it does not, try "self.REQUEST.PARENTS[-1]".



Dieter

_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to