Only use selected pictograms in frame paragraph renderer settings
authorThierry Florac <thierry.florac@onf.fr>
Mon, 08 Oct 2018 15:04:08 +0200
changeset 171 9ad72cdbb4d1
parent 170 aabb634d11d3
child 172 dc05ad847d02
Only use selected pictograms in frame paragraph renderer settings
src/pyams_default_theme/component/paragraph/interfaces/frame.py
--- a/src/pyams_default_theme/component/paragraph/interfaces/frame.py	Mon Oct 08 14:47:12 2018 +0200
+++ b/src/pyams_default_theme/component/paragraph/interfaces/frame.py	Mon Oct 08 15:04:08 2018 +0200
@@ -12,16 +12,11 @@
 
 __docformat__ = 'restructuredtext'
 
-
-# import standard library
+from zope.interface import Attribute, Interface
+from zope.schema import Bool, Choice
+from zope.schema.vocabulary import SimpleTerm, SimpleVocabulary
 
-# import interfaces
-from pyams_content.reference.pictograms.interfaces import PICTOGRAM_VOCABULARY
-
-# import packages
-from zope.interface import Interface, Attribute
-from zope.schema import Bool, Choice
-from zope.schema.vocabulary import SimpleVocabulary, SimpleTerm
+from pyams_content.reference.pictograms.interfaces import SELECTED_PICTOGRAM_VOCABULARY
 
 from pyams_default_theme import _
 
@@ -58,7 +53,7 @@
     pictogram_name = Choice(title=_("Pictogram"),
                             description=_("Name of the pictogram associated with this frame paragraph"),
                             required=False,
-                            vocabulary=PICTOGRAM_VOCABULARY)
+                            vocabulary=SELECTED_PICTOGRAM_VOCABULARY)
 
     pictogram = Attribute("Selected pictogram object")