Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: Users

Zope Catalog sorting

 

 

Zope users RSS feed   Index | Next | Previous | View Threaded


giampiero.benvenuti at chiaroscuro

May 28, 2010, 2:40 AM

Post #1 of 3 (710 views)
Permalink
Zope Catalog sorting

Hello,

I have a simple/silly question:

how can you sort the Catalog results with 2 parameters? Es:
sort_on='last_name', sort_on='first_name'... in the old days was
simple: sort='last_name, first_name'

Thank You,

Giampiero
_______________________________________________
Zope maillist - Zope [at] zope
https://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )


lists at zopyx

May 28, 2010, 11:27 PM

Post #2 of 3 (688 views)
Permalink
Re: Zope Catalog sorting [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Giampiero Benvenuti wrote:
> Hello,
>
> I have a simple/silly question:
>
> how can you sort the Catalog results with 2 parameters? Es:
> sort_on='last_name', sort_on='first_name'... in the old days was
> simple: sort='last_name, first_name'
>

no - use sequence.sort() instead.

- -aj
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwAs9wACgkQCJIWIbr9KYyeAwCfbyMdwIgT9TIWuh+Cd4p7dw3l
IooAoM+QBIIfZNifIs3aI6a2q0u+B8PG
=qE2n
-----END PGP SIGNATURE-----
Attachments: lists.vcf (0.31 KB)


peter at fry-it

May 29, 2010, 4:05 AM

Post #3 of 3 (693 views)
Permalink
Re: Zope Catalog sorting [In reply to]

I haven't tried it myself but the AdvancedQuery product from the
uber-zope-guru Dieter Maurer supports this:
http://www.dieter.handshake.de/pyprojects/zope/AdvancedQuery.html#bct_sec_4


On 28 May 2010 10:40, Giampiero Benvenuti
<giampiero.benvenuti [at] chiaroscuro> wrote:
> Hello,
>
> I have a simple/silly question:
>
> how can you sort the Catalog results with 2 parameters? Es:
> sort_on='last_name', sort_on='first_name'... in the old days was
> simple: sort='last_name, first_name'
>
> Thank You,
>
> Giampiero
> _______________________________________________
> Zope maillist  -  Zope [at] zope
> https://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  https://mail.zope.org/mailman/listinfo/zope-announce
>  https://mail.zope.org/mailman/listinfo/zope-dev )
>



--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
fun crosstips.org
_______________________________________________
Zope maillist - Zope [at] zope
https://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )

Zope users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.