# HG changeset patch # User Thierry Florac # Date 1539003848 -7200 # Node ID 9ad72cdbb4d12514cef5099802b57e490c8b3d22 # Parent aabb634d11d32bdc43c43bb3b84d83abd387e4b3 Only use selected pictograms in frame paragraph renderer settings diff -r aabb634d11d3 -r 9ad72cdbb4d1 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")