[Zope-Checkins] CVS: Zope/lib/python/OFS - PropertyManager.py:1.47
Chris Withers
chrisw@nipltd.com
Fri, 13 Sep 2002 06:02:44 -0400
Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv618/lib/python/OFS
Modified Files:
PropertyManager.py
Log Message:
Fixed bug in manage_editProperties which used an incorrect default for several types of property when they were not found in the REQUEST.
=== Zope/lib/python/OFS/PropertyManager.py 1.46 => 1.47 ===
--- Zope/lib/python/OFS/PropertyManager.py:1.46 Wed Aug 14 17:42:56 2002
+++ Zope/lib/python/OFS/PropertyManager.py Fri Sep 13 06:02:13 2002
@@ -259,7 +259,7 @@
for prop in self._propertyMap():
name=prop['id']
if 'w' in prop.get('mode', 'wd'):
- value=REQUEST.get(name, '')
+ value=REQUEST.get(name, type_converters[prop['type']](''))
self._updateProperty(name, value)
if REQUEST:
message="Saved changes."