Updated external video paragraph indexer
authorThierry Florac <thierry.florac@onf.fr>
Tue, 25 Sep 2018 11:50:05 +0200
changeset 95 776c7848a2b6
parent 94 062935ff7894
child 96 7276d508e8f7
Updated external video paragraph indexer
src/pyams_content_es/component/paragraph.py
--- a/src/pyams_content_es/component/paragraph.py	Tue Sep 25 11:36:27 2018 +0200
+++ b/src/pyams_content_es/component/paragraph.py	Tue Sep 25 11:50:05 2018 +0200
@@ -153,10 +153,6 @@
     info = {}
     manager = get_parent(paragraph, II18nManager)
     for lang in manager.get_languages():
-        body = (paragraph.body or {}).get(lang, '')
-        if body:
-            info[lang] = '{old}\n{body}'.format(old=info.get(lang, ''),
-                                                body=html_to_text(body.replace('\r', '')))
         for attr in ('title', 'description'):
             value = (getattr(paragraph, attr, {}) or {}).get(lang, '')
             if value: