I started learning DTML, then converted a couple applications to ZPT and I like ZPT - it's nice. I like that I can convert to ZPT on a live site - it intermixes with DTML very well. -----Original Message----- From: Stefan H. Holek [mailto:stefan@epy.co.at] Sent: Monday, October 13, 2003 10:51 AM To: D. Rick Anderson Cc: zope@zope.org Subject: Re: [Zope] dynamic sort= According to the documentation* what you want is 'sort_expr='. I do however recommend you stop using DTML alltogether. Stefan *<http://zope.org/Documentation/Books/ZopeBook/2_6Edition/AppendixA.stx> --On Montag, 13. Oktober 2003 10:16 -0700 "D. Rick Anderson" <ruger@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...
-- The time has come to start talking about whether the emperor is as well dressed as we are supposed to think he is. /Pete McBreen/ _______________________________________________ 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 )
"Derek S. Wilson" <dwilson@abrazohealth.com> wrote:
I started learning DTML, then converted a couple applications to ZPT and I like ZPT - it's nice. I like that I can convert to ZPT on a live site - it intermixes with DTML very well.
Seconded. I wrote some serious flames when I first started using ZPT. The ZPT system is, however, mostly much better than DTML. The biggest reason is that well-formed HTML is mostly forced. This is true even though I am a solo developer who never uses GUI tools. I still have some reservations about ZPT's tendency towards putting logic in the middle of the expression, but this can be somewhat ameliorated using a colorizing editor. Jim Penny
participants (2)
-
Derek S. Wilson -
Jim Penny