[Setup] Ordering on dateEmitted

Rui Gamito atrium601 at gmail.com
Fri Feb 10 15:15:29 UTC 2006


Hi all.

I've been trying to order a list of newsletter objects (plone gazette) by
their dateEmitted param, but I can't seem to access that value on the
sort_on option.

Here's my current tal:define, with the sort_on set to Date:

 tal:define="newsletters
python:container.portal_catalog(portal_type='Newsletter',
sort_on='Date', sort_order='normal',review_state='published');
                 newsletters_ord python:sequence.sort(newsletters,
(('dateEmitted', 'cmp', 'asc'),));"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plone.org/pipermail/plone-setup/attachments/20060210/c509d60e/attachment-0003.html>


More information about the Setup mailing list