[Zope-Checkins] CVS: Zope/lib/python/OFS - PropertyManager.py:1.51
Casey Duncan
casey@zope.com
Fri, 2 May 2003 17:43:35 -0400
Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv25561/lib/python/OFS
Modified Files:
PropertyManager.py
Log Message:
Port multiple selection property fix from 2.6 branch. Also undid a previous fix which prevented multiple select properties from being added TTW.
=== Zope/lib/python/OFS/PropertyManager.py 1.50 => 1.51 ===
--- Zope/lib/python/OFS/PropertyManager.py:1.50 Fri Sep 13 16:19:34 2002
+++ Zope/lib/python/OFS/PropertyManager.py Fri May 2 17:43:04 2003
@@ -259,7 +259,10 @@
for prop in self._propertyMap():
name=prop['id']
if 'w' in prop.get('mode', 'wd'):
- value=REQUEST.get(name, '')
+ if prop['type'] == 'multiple selection':
+ value=REQUEST.get(name, [])
+ else:
+ value=REQUEST.get(name, '')
self._updateProperty(name, value)
if REQUEST:
message="Saved changes."