[Zope] ZMySQLDA Question

Andreas Jung lists at zopyx.com
Thu Sep 27 15:43:20 EDT 2007



--On 27. September 2007 15:37:33 -0400 tonylabarbara at aol.com wrote:

> 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?
>

YES! You read the fine documentation:

<http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/AdvZPT.stx>

-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20070927/4648c9b2/attachment.bin


More information about the Zope mailing list