[CMF-checkins] SVN: CMF/branches/1.5/C CMFCore: removed old
backward compatibility code that slowed down
Florent Guillaume
fg at nuxeo.com
Wed Nov 16 12:13:16 EST 2005
Log message for revision 40161:
CMFCore: removed old backward compatibility code that slowed down
TypeInformation.allowType and gave PortalFolder.allowedContentTypes
quadratic complexity.
Changed:
U CMF/branches/1.5/CHANGES.txt
U CMF/branches/1.5/CMFCore/TypesTool.py
-=-
Modified: CMF/branches/1.5/CHANGES.txt
===================================================================
--- CMF/branches/1.5/CHANGES.txt 2005-11-16 17:07:43 UTC (rev 40160)
+++ CMF/branches/1.5/CHANGES.txt 2005-11-16 17:13:16 UTC (rev 40161)
@@ -78,6 +78,10 @@
- CMFSetup: allow export of properties of old objects that were
stored as lists (instead of tuples now).
+ - CMFCore: removed old backward compatibility code that slowed down
+ TypeInformation.allowType and gave PortalFolder.allowedContentTypes
+ quadratic complexity.
+
CMF 1.5.4 (2005/09/04)
Bug Fixes
Modified: CMF/branches/1.5/CMFCore/TypesTool.py
===================================================================
--- CMF/branches/1.5/CMFCore/TypesTool.py 2005-11-16 17:07:43 UTC (rev 40160)
+++ CMF/branches/1.5/CMFCore/TypesTool.py 2005-11-16 17:13:16 UTC (rev 40161)
@@ -231,11 +231,6 @@
if contentType in self.allowed_content_types:
return 1
- # Backward compatibility for code that expected Type() to work.
- for ti in self.listTypeInfo():
- if ti.Title() == contentType:
- return ti.getId() in self.allowed_content_types
-
return 0
security.declarePublic('getId')
More information about the CMF-checkins
mailing list