[Zope] Re: DTML-tree Custom sort

Chris Beaven chris at d-designz.co.nz
Sun Oct 2 21:53:56 EDT 2005


Alex Renier wrote:
> 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>

I think that Andreas meant

<dtml-tree branches_expr="[o for o in objectValues(['Folder']) if 
hasattr(o,'orderInt')]" sort="orderInt" skip_unauthorized>



More information about the Zope mailing list