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')

_______________________________________________
CMF-checkins mailing list
[email protected]
http://mail.zope.org/mailman/listinfo/cmf-checkins

Reply via email to