Updated paragraphs indexer
authorThierry Florac <thierry.florac@onf.fr>
Fri, 08 Dec 2017 11:22:31 +0100
changeset 31 26ff0b922ab0
parent 30 605900ea3781
child 32 6bb958e6e26a
Updated paragraphs indexer
src/pyams_content_es/component/paragraph.py
--- a/src/pyams_content_es/component/paragraph.py	Fri Dec 08 11:19:25 2017 +0100
+++ b/src/pyams_content_es/component/paragraph.py	Fri Dec 08 11:22:31 2017 +0100
@@ -77,8 +77,7 @@
         if title:
             info.setdefault(lang, title)
     for image in IGalleryParagraph(paragraph).values():
-        for attr in ('title', 'alt_title', 'description', 'author', 'author_comments', 'sound_title',
-                     'sound_description'):
+        for attr in ('title', 'alt_title', 'description', 'author_comments', 'sound_title', 'sound_description'):
             for lang, value in (getattr(image, attr, {}) or {}).items():
                 if value:
                     new_info = '{old}\n{value}'.format(old=info.get(lang, ''),