[Zope] ZMySQLDA Question

2007-09-27 Thread tonylabarbara
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
___
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 )


Re: [Zope] ZMySQLDA Question

2007-09-27 Thread Andreas Jung



--On 27. September 2007 15:37:33 -0400 [EMAIL PROTECTED] 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

pgpRwMn7NR13K.pgp
Description: PGP signature
___
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 )


Re: [Zope] ZMySQLDA Question

2007-09-27 Thread tonylabarbara

 Thanks!


 


 

-Original Message-
From: Andreas Jung [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; zope@zope.org
Sent: Thu, 27 Sep 2007 3:43 pm
Subject: Re: [Zope] ZMySQLDA Question









?

--On 27. September 2007 15:37:33 -0400 [EMAIL PROTECTED] 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?



 



Email and AIM finally together. You've gotta check out free AOL Mail! - 
http://mail.aol.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 )