[Zope] dtml-in/sort equivalent in Product

Michal Bencur zope@benko.sk
Thu, 20 Jun 2002 17:16:31 +0200


Hi,

I want to get a list of 10 most updated objects contained
in my Product.

I can use self.objectValues('Something'), but I don't know
how to sort it by "id/cmp/desc" from within Python.

So I need Python equivalent of this DTML code:

<dtml-in prefix="loop"
         expr="objectValues('Something')"
         sort="id/cmp/desc"
         size="10">

Is there something in Zope to do this, or do I have to write
sorting method and sort it myself ?


regards,
Michal