[Zope] Finding PARENTS in an external method.

Max M maxmcorp@worldonline.dk
Thu, 30 Nov 2000 23:50:16 +0100


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