[CMF-checkins]
SVN: CMF_Extras/trunk/CMFCollector/skins/collector/query_rss.py
- Improve RSS title; include assignments in 'dc:subject'.
Tres Seaver
tseaver at palladion.com
Wed Jul 11 12:23:51 EDT 2007
Log message for revision 77694:
- Improve RSS title; include assignments in 'dc:subject'.
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-07-11 14:20:14 UTC (rev 77693)
+++ CMF_Extras/trunk/CMFCollector/skins/collector/query_rss.py 2007-07-11 16:23:50 UTC (rev 77694)
@@ -32,18 +32,24 @@
items = []
for item in found:
- items.append({'url': item.getURL(),
- 'title': '%s [%0d]' % (item.Title, item.action_number),
- 'description': item.Description,
- 'subjects': ('status:%s' % item.status,
+ info = {'url': item.getURL(),
+ 'title': '%04d|%03d: %s' % (int(item.getId),
+ item.action_number,
+ item.Title,
+ ),
+ 'description': item.Description,
+ 'subjects': ['status:%s' % item.status,
'importance:%s' % item.importance,
'topic:%s' % item.topic,
'classification:%s' % item.classification,
- ),
- 'creators': (item.submitter_id,),
- 'contributors': item.assigned_to,
- 'date': item.modified.HTML4(),
- })
+ ],
+ 'creators': (item.submitter_id,),
+ 'contributors': item.assigned_to,
+ 'date': item.modified.HTML4(),
+ }
+ if item.assigned_to:
+ info['subjects'].append('assigned:%s' % ','.join(item.assigned_to))
+ items.append(info)
options['issues'] = tuple(items)
More information about the CMF-checkins
mailing list