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




_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to