[Zope] DTML-tree Custom sort
Alex Renier
goldenray3458 at yahoo.com
Sun Oct 2 13:06:33 EDT 2005
Thanks for your help AJ
I get this:
Error Type: SyntaxError
Error Value: invalid syntax (line 1)
<dtml-tree branches_expr="[o for o in
objectValues(['Folder'] if hasattr('orderInt'))]"
sort="orderInt" skip_unauthorized>
It doesn't like how I put spaces in objectValues()
attributes for " if hasattr..."
Is the syntax a bit different?
Thanks!
--- Andreas Jung <lists at andreas-jung.com> wrote:
>
>
> --On 2. Oktober 2005 09:43:02 -0700 Alex Renier
> <goldenray3458 at yahoo.com>
> wrote:
>
> > <dtml-tree
> branches_expr="objectValues(['Folder'])"
> > sort="orderInt" skip_unauthorized>
>
>
> perhaps
>
> <dtml-tree branches_expr="[o for o in
> objectValues(['Folder'] if
> hasattr('orderInt')])"
> sort="orderInt" skip_unauthorized>
>
> -aj
>
>
>
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
More information about the Zope
mailing list