[Zope] all DTML Methods of current folder and subfolder

Dieter Maurer dieter@handshake.de
Sun, 23 Jul 2000 12:42:53 +0200 (CEST)


Jerome ALET writes:
 > Please do you know how to pass a "complex" obj_expr parameter to the
 > ZopeFind call ?
 > 
 > I want to do the following loop in Zope 2.1.6:
 > 
 > <dtml-in "ZopeFind(this(), obj_metatypes=['Folder'], search_sub=1, obj_expr=XXX">
 > 
 > where XXX is "not objectValues(['Folder'])"
 > 
 > this would recursively find all subfolders which hasn't got any 
 > subfolder from the current folder.
 > 
 > What is the correct syntax (', " and """ nesting) for that ?
You cannot use " or """ because this would confuse the
dtml-parser.

You can use:
  ... obj_expr='''not objectValues(['Folder'])''' ...
or
  ... obj_epxr='not objectValues[\'Folder\']=' ...


Dieter


PS: It was a question about escapes in Python.