[Zope] Finding PARENTS in an external method.

Phil Harris phil.harris@zope.co.uk
Fri, 1 Dec 2000 00:21:05 -0000


Max,

Try self.REQUEST.PARENTS[-1].

Phil
----- Original Message ----- 
From: "Max M" <maxmcorp@worldonline.dk>
To: "Zope@Zope. Org" <zope@zope.org>
Sent: Thursday, November 30, 2000 10:50 PM
Subject: [Zope] Finding PARENTS in an external method.


| I have an external Method. How do I call PARENTS[-1] from it?
| in dtml it would be: <dtml-in "PARENTS[-1].objectValues('Folder')">
| 
| I have tried something like:
|     self.PARENTS[-1].objectValues('Folder')
| 
| I have also checked if PARENTS get passed to the method like:
|     myMethod(self, PARENTS=None):
| 
| To get a list of the root's Folder's, but no luck.
| 
|     Regards Max M
| 
| Max M. W. Rasmussen,    Denmark.   New Media Director
| private: maxmcorp@worldonline.dk work: maxm@normik.dk
| -----------------------------------------------------
| Specialization is for insects.  -  Robert A. Heinlein
| 
| _______________________________________________
| Zope maillist  -  Zope@zope.org
| 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 )