[Zope] Searching through PARENTS
James W. Howe
jwh@aisys.com
Wed, 27 Oct 1999 12:24:33 -0400
Is there a way for a DTMLMethod to determine if a particular folder is in
its acquisition path? For example, suppose I have the following structure:
/
FolderA
FolderB
FolderC
FolderD
FolderE
If I define a method which actually resides in FolderA (and is therefore
inherited by subfolders), is there way for me to check to see if FolderB is
in my PARENTS collection?
If I was displaying /FolderA/FolderB/FolderC I would want my method to
answer true to the question of whether or not FolderB was in my PARENTS
collection. Howerver if I was displaying /FolderA/FolderD/FolderE, the
answer would be false.
What I really want to know is if there is a syntax which can answer the
question
PARENTS contains "<some id>"
Thanks.
James W. Howe
AppNet Inc.
650 Avis Dr. Suite 100 mailto:james.howe@appnet.com
Ann Arbor, MI 48108 http://www.appnet.com