[Zope-CMF] Old backward compat in TypesTool

Florent Guillaume fg at nuxeo.com
Wed Nov 16 08:18:59 EST 2005


CMF 1.5.4 (and trunk) has in TypesTool.allowType some backward compat  
code added a long time ago when allowed_content_types was fixed to  
compare to the TI id and not its title.

Unless there's opposition, I'll remove this code as it adds an  
additional useless loop over all content types, which makes  
PortalFolder.allowedContentTypes have quadratic behavior in the  
number of types defined and slows it down a lot.

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)   Director of R&D
+33 1 40 33 71 59   http://nuxeo.com   fg at nuxeo.com




More information about the Zope-CMF mailing list