Corrected component
authorThierry Florac <thierry.florac@onf.fr>
Fri, 08 Dec 2017 11:19:25 +0100
changeset 30 605900ea3781
parent 29 7c67d484b5e8
child 31 26ff0b922ab0
Corrected component
src/pyams_content_es/component/extfile.py
--- a/src/pyams_content_es/component/extfile.py	Fri Nov 10 13:24:51 2017 +0100
+++ b/src/pyams_content_es/component/extfile.py	Fri Dec 08 11:19:25 2017 +0100
@@ -34,7 +34,7 @@
     for paragraph in IParagraphContainer(context).values():
         associations = IAssociationContainer(paragraph, {})
         for extfile in associations.values():
-            if not IBaseExtFile.providedBy(extfile):
+            if not (IBaseExtFile.providedBy(extfile) and extfile.data):
                 continue
             extfiles.append({'title': extfile.title,
                              'description': extfile.description})