[Zope-dev] ZCatalog problem: sort_on bug
Steve Alexander
steve@cat-box.net
Mon, 24 Sep 2001 20:48:41 +0100
Steve Alexander wrote:
>
> This gives partial results:
>
> <dtml-in "Catalog(process_step=['start','mailed'],
> sort_on='subject_name')">
...because this returns a LazyCat instance, for which len() is broken.
> This gives full results:
>
> <dtml-in "Catalog(process_step=['start','mailed'],
> sort_on='subject_name')[:]">
...because this is a list.
> This gives full results:
>
> <dtml-in "Catalog(process_step=['start','mailed'],
> sort_on='subject_name')" sort="subject_name">
...because this is a LazyMap instance, for which len() works.
Patch coming up soon...
--
Steve Alexander
Software Engineer
Cat-Box limited