Max,

Try self.REQUEST.PARENTS[-1].

Phil
----- Original Message ----- 
From: "Max M" <[EMAIL PROTECTED]>
To: "Zope@Zope. Org" <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED] work: [EMAIL PROTECTED]
| -----------------------------------------------------
| Specialization is for insects.  -  Robert A. Heinlein
| 
| _______________________________________________
| 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 )


_______________________________________________
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