now I'm at work I've tested your solution, read below.

On Sun, 23 Jul 2000, Dieter Maurer wrote:

> Jerome ALET writes:
>  > 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'])"
>  > 
>  > What is the correct syntax (', " and """ nesting) for that ?
> You can use:
>   ... obj_expr='''not objectValues(['Folder'])''' ...
> or
>   ... obj_epxr='not objectValues[\'Folder\']=' ...

Thanks to you, the syntax you gave me is accepted by the dtml parser, but

<dtml-in "ZopeFind(this(), obj_metatypes=['Folder'], 
          obj_expr='''not objectValues(['Folder'])''', 


<dtml-in "ZopeFind(this(), obj_metatypes=['Folder'],  
          obj_expr='not objectValues([\'Folder\'])',

have given me an empty list.

If I don't use obj_expr then I've got the full recursive list of all
subfolders from the current folder.

Knowing that the Zope Search Interface allows me to type this expression
in the obj_expr field and gives me the correct result, what could be the
problem I encounter ? 

I know I could build a correct list by putting a test inside my dtml-in
loop, but I really prefer to understand why this doesn't work, and all I
can say now is: I don't understand at all.

Does anyone have an idea about where the problem comes from ?

thanks in advance.

Jerome ALET - [EMAIL PROTECTED] - http://cortex.unice.fr/~jerome
Faculte de Medecine de Nice - http://noe.unice.fr - Tel: 04 93 37 76 30 
28 Avenue de Valombrose - 06107 NICE Cedex 2 - FRANCE

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

Reply via email to