[CMF-checkins] CVS: CMF/CMFSetup - utils.py:1.17
Yvo Schubbe
y.2005- at wcm-solutions.de
Tue Apr 5 13:20:12 EDT 2005
Update of /cvs-repository/CMF/CMFSetup
In directory cvs.zope.org:/tmp/cvs-serv8689/CMFSetup
Modified Files:
utils.py
Log Message:
- if the DEFAULT value is used, CONVERTER is no longer called
- reverted obsolete change in _convertToBoolean()
=== CMF/CMFSetup/utils.py 1.16 => 1.17 ===
--- CMF/CMFSetup/utils.py:1.16 Thu Mar 10 09:43:13 2005
+++ CMF/CMFSetup/utils.py Tue Apr 5 13:20:12 2005
@@ -204,7 +204,7 @@
else:
info[key] = v[DEFAULT]
- if CONVERTER in v and key in info:
+ elif CONVERTER in v and key in info:
info[key] = v[CONVERTER]( info[key] )
if key is None:
@@ -232,10 +232,8 @@
{ '#text': {KEY: None} } }
def _convertToBoolean(self, val):
- if isinstance(val, basestring):
- return val.lower() in ('true', 'yes', '1')
- else:
- return val
+
+ return val.lower() in ('true', 'yes', '1')
def _convertToUnique(self, val):
More information about the CMF-checkins
mailing list