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

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


Log message for revision 40162:
  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/trunk/CMFCore/TypesTool.py

-=-
Modified: CMF/trunk/CMFCore/TypesTool.py
===================================================================
--- CMF/trunk/CMFCore/TypesTool.py	2005-11-16 17:13:16 UTC (rev 40161)
+++ CMF/trunk/CMFCore/TypesTool.py	2005-11-16 17:14:09 UTC (rev 40162)
@@ -250,11 +250,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