[CMF-checkins] CVS: CMF/CMFCollector - Collector.py:1.30
Ken Manheimer
klm@zope.com
Mon, 15 Apr 2002 12:27:21 -0400
Update of /cvs-repository/CMF/CMFCollector
In directory cvs.zope.org:/tmp/cvs-serv32106
Modified Files:
Collector.py
Log Message:
Backwards compat hack, to rectify collectors that got their
self.state_email set to a state_email form-settings mapping. Any time
that's noticed, we transform it back to a dictionary. (The code that
caused that setting to happen was previously fixed.)
=== CMF/CMFCollector/Collector.py 1.29 => 1.30 ===
# variable hood.
se = {}
+ if type(self.state_email) != type({}):
+ # Backwards-compat hack. Convert back to dictionary...
+ d = {}
+ for k, v in self.state_email.items(): d[k] = v
+ self.state_email = d
se.update(self.state_email)
for k, v in state_email.items():
current_setting = se.get(k, None)