[Zope] How to filter and sort PropertyObjects from ZCatalog

Christian Otteneuer chotty at freenet.de
Thu Sep 30 13:41:42 EDT 2004


> Now, I want to filter out all PropertyObjects, which have 'priority == 0'

For the 'filter problem', I found a possibility:

result = (map( lambda brain: brain.getObject(),
         filter(lambda x: x.getObject().getProperty('priority')>0,
         container.Catalog.searchResults())))

Stays the 'sort problem'... 





More information about the Python-list mailing list