[CMF-checkins] SVN: CMF/branches/1.6/CMFCore/TypesTool.py Merged 40161 from 1.5 branch:

Florent Guillaume fg at nuxeo.com
Wed Nov 16 12:16:27 EST 2005


Log message for revision 40163:
  Merged 40161 from 1.5 branch:
  Removed old backward compatibility code that slowed down
  TypeInformation.allowType and gave PortalFolder.allowedContentTypes
  quadratic complexity.
  

Changed:
  U   CMF/branches/1.6/CMFCore/TypesTool.py

-=-
Modified: CMF/branches/1.6/CMFCore/TypesTool.py
===================================================================
--- CMF/branches/1.6/CMFCore/TypesTool.py	2005-11-16 17:14:09 UTC (rev 40162)
+++ CMF/branches/1.6/CMFCore/TypesTool.py	2005-11-16 17:16:26 UTC (rev 40163)
@@ -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