Removed "body" from video paragraph index info
authorThierry Florac <thierry.florac@onf.fr>
Thu, 28 Jun 2018 09:22:22 +0200
changeset 68 5e51a9ef1094
parent 67 bacb54de8ace
child 69 3bc0c516ed1a
Removed "body" from video paragraph index info
src/pyams_content_es/component/paragraph.py
--- a/src/pyams_content_es/component/paragraph.py	Mon Jun 11 16:14:30 2018 +0200
+++ b/src/pyams_content_es/component/paragraph.py	Thu Jun 28 09:22:22 2018 +0200
@@ -126,10 +126,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, {}).get(lang, '')
             if value: