[CMF-checkins] CVS: CMF/CMFCollector/skins/collector - collector_issue_subject_attrs.py:1.1
Ken Manheimer
klm@zope.com
Tue, 16 Oct 2001 14:55:49 -0400
Update of /cvs-repository/CMF/CMFCollector/skins/collector
In directory cvs.zope.org:/tmp/cvs-serv5898/skins/collector
Added Files:
collector_issue_subject_attrs.py
Log Message:
Helper to convert consolidated Subject catalog-index entry for an
issue into {field: value, ...} dictionary, used in search page.
=== Added File CMF/CMFCollector/skins/collector/collector_issue_subject_attrs.py ===
## Script (Python) "collector_subject_attrs.py"
##parameters=item
##title=Convert consolidated catalog-index Subject tuple into field/value-strings dict
from string import split
got = {}
for i in item.Subject:
name, val = split(i, ':')
got[name] = val
return got