I am trying to access the PARENT of an object in a python class of mine.
I want to use the absolute_url() of the parent in a variable.

I though it could be done the following way, but got an error:

     parent=self.PARENTS[0]
     aurl = parent.absolute_url()

I then tried using REQUEST. It works, but doesn't give the correct
information. Instead of giving me the parent  of the current object(self),
it gives the parent of the DTML page in which the object was called.

     parent=self.REQUEST.PARENTS[0]
     aurl = parent.absolute_url()

How do you resolve the PARENT object of an object?

Kevin Howe


_______________________________________________
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