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.

_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to