[Zope-Checkins] CVS: Zope/lib/python/OFS - PropertyManager.py:1.42.16.2

Chris Withers chrisw@nipltd.com
Fri, 13 Sep 2002 06:07:15 -0400


Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv1108/lib/python/OFS

Modified Files:
      Tag: Zope-2_5-branch
	PropertyManager.py 
Log Message:
(merge to 2.5 branch)
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.42.16.1 => 1.42.16.2 ===
--- Zope/lib/python/OFS/PropertyManager.py:1.42.16.1	Thu Aug  1 12:00:57 2002
+++ Zope/lib/python/OFS/PropertyManager.py	Fri Sep 13 06:06:44 2002
@@ -260,7 +260,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."