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

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


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

Modified Files:
      Tag: Zope-2_6-branch
	PropertyManager.py 
Log Message:
(merge to 2.6 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.46 => 1.46.6.1 ===
--- 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:16:38 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."