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
You can use:
... obj_expr='''not objectValues(['Folder'])''' ...
... obj_epxr='not objectValues[\'Folder\']=' ...
PS: It was a question about escapes in Python.
Zope maillist - [EMAIL PROTECTED]
** No cross posts or HTML encoding! **
(Related lists -