[Zope] Finding PARENTS in an external method.

Max M maxmcorp@worldonline.dk
Fri, 1 Dec 2000 00:40:23 +0100


Thank you...

just what the doctor ordered.

It was the passing of PARENTS that did the trick I was looking for.

Regards maxm

Max M. W. Rasmussen,    Denmark.   New Media Director
private: maxmcorp@worldonline.dk work: maxm@normik.dk
-----------------------------------------------------
Specialization is for insects.  -  Robert A. Heinlein

-----Original Message-----
From: michael angelo ruberto [mailto:michaelangelo@webmind.com]

i tried this and it works. the output is pretty ugly if you return it to
Zope though. maybe someone knows how to clean it up.

def index(self, PARENTS, REQUEST):
n = PARENTS[0].objectItems(['File','DTML Document','Folder','ListMate','DTML
Method'])

	n.sort()