--- a/src/pyams_content_es/component/paragraph.py Wed Sep 19 11:19:11 2018 +0200
+++ b/src/pyams_content_es/component/paragraph.py Mon Sep 24 18:09:51 2018 +0200
@@ -14,8 +14,7 @@
from pyams_content.component.gallery.interfaces import IGalleryParagraph
from pyams_content.component.illustration.interfaces import IIllustrationParagraph
-from pyams_content.component.paragraph.interfaces import IParagraphContainer, IParagraphContainerTarget, \
- IBaseParagraph
+from pyams_content.component.paragraph.interfaces import IBaseParagraph, IParagraphContainer, IParagraphContainerTarget
from pyams_content.component.paragraph.interfaces.audio import IAudioParagraph
from pyams_content.component.paragraph.interfaces.contact import IContactParagraph
from pyams_content.component.paragraph.interfaces.frame import IFrameParagraph
@@ -100,11 +99,8 @@
def gallery_paragraph_index_info(paragraph):
"""Gallery paragraph index info"""
info = {}
- for lang, title in (getattr(paragraph, 'title', {}) or {}).items():
- if title:
- info.setdefault(lang, title)
for image in IGalleryParagraph(paragraph).values():
- for attr in ('title', 'alt_title', 'description', 'author_comments', 'sound_title', 'sound_description'):
+ for attr in ('title', 'alt_title', 'description', '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, ''),