20 Jun
2002
20 Jun
'02
3:16 p.m.
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