Commit fdaef6cf authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

convert(None) has a different meaning for Web Page. here what we want is...

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.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42259 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 30293bb7
......@@ -216,7 +216,7 @@ class DiscoverableMixin(CachedConvertableMixin):
# 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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment