[Erp5-report] r41721 kazuhiko - /erp5/trunk/products/ERP5/mixin/discoverable.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Dec 23 17:17:58 CET 2010


Author: kazuhiko
Date: Thu Dec 23 17:17:58 2010
New Revision: 41721

URL: http://svn.erp5.org?rev=41721&view=rev
Log:
add a ToDo comment.

Modified:
    erp5/trunk/products/ERP5/mixin/discoverable.py

Modified: erp5/trunk/products/ERP5/mixin/discoverable.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/mixin/discoverable.py?rev=41721&r1=41720&r2=41721&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/mixin/discoverable.py [utf8] (original)
+++ erp5/trunk/products/ERP5/mixin/discoverable.py [utf8] Thu Dec 23 17:17:58 2010
@@ -210,6 +210,9 @@ class DiscoverableMixin(CachedConvertabl
     Return content_type read from metadata extraction of content.
     This method is called by portal_contribution_registry
     """
+    # XXX should be cached in a transactional cache, because this method
+    # might be called several times by a single call of
+    # portal_contribution_registry.findPortalTypeName().
     mime, content = self.convert(None)
     if not content:
       return



More information about the Erp5-report mailing list