[CMF-checkins]
SVN: CMF_Extras/trunk/CMFCollector/skins/collector/query_rss.py
Remap 'supporters' -> 'assigned_to' for searching in feed.
Tres Seaver
tseaver at palladion.com
Fri Jun 29 17:19:28 EDT 2007
Log message for revision 77250:
Remap 'supporters' -> 'assigned_to' for searching in feed.
Changed:
U CMF_Extras/trunk/CMFCollector/skins/collector/query_rss.py
-=-
Modified: CMF_Extras/trunk/CMFCollector/skins/collector/query_rss.py
===================================================================
--- CMF_Extras/trunk/CMFCollector/skins/collector/query_rss.py 2007-06-29 20:54:19 UTC (rev 77249)
+++ CMF_Extras/trunk/CMFCollector/skins/collector/query_rss.py 2007-06-29 21:19:25 UTC (rev 77250)
@@ -23,8 +23,12 @@
if 'sort_on' in query:
del query['sort_on']
+if 'supporters' in query:
+ query['assigned_to'] = query['supporters']
+ del query['supporters']
+
catalog = context.get_internal_catalog()
-found = catalog.search(query, 'modified', True)
+found = catalog.search(query_request=query, sort_index='modified', reverse=True)
items = []
for item in found:
More information about the CMF-checkins
mailing list