[Zope-Checkins] CVS: Zope2 - PropertyManager.py:1.34.4.4
andreas@serenade.digicool.com
andreas@serenade.digicool.com
Sat, 5 May 2001 16:18:08 -0400
Update of /cvs-repository/Zope2/lib/python/OFS
In directory serenade.digicool.com:/tmp/cvs-serv24048/lib/python/OFS
Modified Files:
Tag: zope-2_3-branch
PropertyManager.py
Log Message:
fix for collector #2206: applying string.strip() first
--- Updated File PropertyManager.py in package Zope2 --
--- PropertyManager.py 2001/03/01 16:06:36 1.34.4.3
+++ PropertyManager.py 2001/05/05 20:18:07 1.34.4.4
@@ -91,7 +91,7 @@
from PropertySheets import DefaultPropertySheets, vps
from ZPublisher.Converters import type_converters
from Globals import DTMLFile, MessageDialog
-from string import find,join,lower,split
+from string import find,join,lower,split,strip
from DocumentTemplate import html_quote
from Acquisition import Implicit, aq_base
from Globals import Persistent
@@ -239,6 +239,8 @@
# for selection and multiple selection properties
# the value argument indicates the select variable
# of the property
+
+ id = strip(id)
self._wrapperCheck(value)
if not self.valid_property_id(id):
raise 'Bad Request', 'Invalid or duplicate property id'