[CMF-checkins] CVS: CMF/CMFSetup - typeinfo.py:1.12.2.5

Yvo Schubbe y.2005- at wcm-solutions.de
Thu Mar 10 09:46:10 EST 2005


Update of /cvs-repository/CMF/CMFSetup
In directory cvs.zope.org:/tmp/cvs-serv3457/CMFSetup

Modified Files:
      Tag: CMF-1_5-branch
	typeinfo.py 
Log Message:
if not in purge mode, allow to replace specific types


=== CMF/CMFSetup/typeinfo.py 1.12.2.4 => 1.12.2.5 ===
--- CMF/CMFSetup/typeinfo.py:1.12.2.4	Mon Jan 17 05:40:01 2005
+++ CMF/CMFSetup/typeinfo.py	Thu Mar 10 09:46:09 2005
@@ -72,6 +72,9 @@
 
         type_info = klass_info[ 'class' ]( **info )
 
+        if info['id'] in types_tool.objectIds():
+            types_tool._delObject(info['id'])
+
         types_tool._setObject( str( info[ 'id' ] ), type_info )
 
 



More information about the CMF-checkins mailing list