[Zope] script to create tuple of Objects

Dieter Maurer dieter@handshake.de
Sat, 26 Jan 2002 20:23:20 +0100


Trevor Toenjes writes:
 > I am trying to create a master script to exist in Root that will create a
 > list of objects from a Folder with a given ObjectType.  like zClasses,
 > DTML_Methods, or DTML_Docs.
 > 
 > script- tuple_of_items called in Override
 > 
 > ##parameters=myFolder, myObjectType
 > results=[]
 > for object in container.myFolder.objectValues('myObjectType'):
Almost surely, you mean:

       for object in container.myFolder.objectValues(myObjectType):
       
Otherwise, you look for the literal "myObjectType" and not for
the passed in parameter.


Dieter