Great thank you both!!!
I never knew you could do if-statements like that.

--- Chris Beaven <[EMAIL PROTECTED]> wrote:

> 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>
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 



                
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com
_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to