src/pyams_content/shared/logo/paragraph.py
changeset 1207 a97f2023131a
parent 1130 7474da511445
child 1243 837612af4dc3
--- a/src/pyams_content/shared/logo/paragraph.py	Thu Jan 03 17:52:15 2019 +0100
+++ b/src/pyams_content/shared/logo/paragraph.py	Fri Jan 04 12:20:10 2019 +0100
@@ -16,6 +16,7 @@
 from zope.schema.fieldproperty import FieldProperty
 from zope.schema.vocabulary import SimpleTerm, SimpleVocabulary
 
+from pyams_content import _
 from pyams_content.component.paragraph import BaseParagraph, BaseParagraphContentChecker, BaseParagraphFactory, \
     IParagraphFactory
 from pyams_content.features.checker.interfaces import ERROR_VALUE, IContentChecker, MISSING_LANG_VALUE, MISSING_VALUE
@@ -31,8 +32,6 @@
 from pyams_utils.vocabulary import vocabulary_config
 from pyams_workflow.interfaces import IWorkflow, IWorkflowState
 
-from pyams_content import _
-
 
 @implementer(ILogosParagraph)
 class LogosParagraph(BaseParagraph):
@@ -41,11 +40,11 @@
     icon_class = 'fa-th-large'
     icon_hint = LOGOS_PARAGRAPH_NAME
 
-    references = FieldProperty(ILogosParagraph['references'])
+    logos = FieldProperty(ILogosParagraph['logos'])
     renderer = FieldProperty(ILogosParagraph['renderer'])
 
-    def get_targets(self, state=None, with_reference=False):
-        for reference in self.references or ():
+    def get_logos(self, state=None, with_reference=False):
+        for reference in self.logos or ():
             if with_reference:
                 yield reference, get_reference_target(reference, state)
             else: