[Erp5-report] r42259 kazuhiko - /erp5/trunk/products/ERP5/mixin/discoverable.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Jan 12 12:49:11 CET 2011
Author: kazuhiko
Date: Wed Jan 12 12:49:11 2011
New Revision: 42259
URL: http://svn.erp5.org?rev=42259&view=rev
Log:
convert(None) has a different meaning for Web Page. here what we want is so-called 'base data', that is text_content for Web Page and getBaseData() already supports it.
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=42259&r1=42258&r2=42259&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/mixin/discoverable.py [utf8] (original)
+++ erp5/trunk/products/ERP5/mixin/discoverable.py [utf8] Wed Jan 12 12:49:11 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().
- mime, content = self.convert(None)
+ content = self.getBaseData()
if not content:
return
if magic is not None:
More information about the Erp5-report
mailing list