[Erp5-report] r42261 nicolas - /erp5/trunk/products/ERP5/mixin/discoverable.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Jan 12 13:14:06 CET 2011


Author: nicolas
Date: Wed Jan 12 13:14:06 2011
New Revision: 42261

URL: http://svn.erp5.org?rev=42261&view=rev
Log:
In fact raw data must be explicitely used here.
Otherwise detection of content_type returns the base_content_type
which is useless and unwanted.


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=42261&r1=42260&r2=42261&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/mixin/discoverable.py [utf8] (original)
+++ erp5/trunk/products/ERP5/mixin/discoverable.py [utf8] Wed Jan 12 13:14:06 2011
@@ -216,7 +216,7 @@ class DiscoverableMixin(CachedConvertabl
     # 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().
-    content = self.getBaseData()
+    content = self.getData()
     if not content:
       return
     if magic is not None:



More information about the Erp5-report mailing list