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

Andreas Jung andreas@andreas-jung.com
Sat, 7 Jun 2003 11:34:51 -0400


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

Modified Files:
	PropertyManager.py 
Log Message:
Collector #907: delegating deletion of property


=== Zope/lib/python/OFS/PropertyManager.py 1.51 => 1.52 ===
--- Zope/lib/python/OFS/PropertyManager.py:1.51	Fri May  2 17:43:04 2003
+++ Zope/lib/python/OFS/PropertyManager.py	Sat Jun  7 11:34:50 2003
@@ -199,7 +199,7 @@
     def _delProperty(self, id):
         if not self.hasProperty(id):
             raise ValueError, 'The property %s does not exist' % escape(id)
-        delattr(self,id)
+        self._delPropValue(id)
         self._properties=tuple(filter(lambda i, n=id: i['id'] != n,
                                       self._properties))
 
@@ -289,7 +289,8 @@
                 self._updateProperty(name, value)
         if REQUEST:
             message="Saved changes."
-            return self.manage_propertiesForm(self,REQUEST,manage_tabs_message=message)
+            return self.manage_propertiesForm(self,REQUEST,
+                                              manage_tabs_message=message)
 
     # Note - this is experimental, pending some community input.