[Zope] dynamic sort=

Andreas Jung andreas at andreas-jung.com
Mon Oct 13 13:20:29 EDT 2003


Check sequence.sort(). Docs are in the API refs.

-aj

--On Montag, 13. Oktober 2003 10:16 Uhr -0700 "D. Rick Anderson" 
<ruger at acsnv.com> wrote:

> Is there a way to do a dynamic sort= on a dtml-in on a list of
> dictionaries?
>
> like:
>
> <dtml-call "REQUEST.set('sortby', 'firstname')">
>
> <dtml-in "queryname_py" mapped sort=_['sortby']>
> etc...
>
> I've tried _['sortby'], _[sortby], "_['sortby']", and "_[sortby]" and I
> always get an error. Is there an easy way to do this?
>
> Thanks,
>
> Rick
>
>
> _______________________________________________
> Zope maillist  -  Zope at 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 )







More information about the Zope mailing list