[Zope] ZMySQLDA Question

tonylabarbara at aol.com tonylabarbara at aol.com
Thu Sep 27 15:37:33 EDT 2007


Hi;
I want to do something like this in my Page Template:
mysql> select * from products order by name, newRow;

Now, I know I can do this:

tal:define="items python:sequence.sort(items, (('name', 'cmp', 'asc'),))"

but that only orders by name, not by name *and* newRow. Any ideas?
TIA,
Tony

________________________________________________________________________
Email and AIM finally together. You've gotta check out free AOL Mail! - http://mail.aol.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20070927/1e97aa7a/attachment.htm


More information about the Zope mailing list