src/pyams_content/component/theme/interfaces/__init__.py
changeset 829 f933926ed0a1
parent 800 2b5460ecb254
child 947 b5eeec049869
equal deleted inserted replaced
828:bf12603398b2 829:f933926ed0a1
    56 
    56 
    57 
    57 
    58 class IPortletTagsSettings(Interface):
    58 class IPortletTagsSettings(Interface):
    59     """Interface for portlet settings managing tags"""
    59     """Interface for portlet settings managing tags"""
    60 
    60 
       
    61     tags = ThesaurusTermsListField(title=_("Tags"),
       
    62                                    required=False)
       
    63 
    61 
    64 
    62 class IPortletTagsSettingsTarget(Interface):
    65 class IPortletTagsSettingsTarget(Interface):
    63     """Marker interface for portlet settings managing tags"""
    66     """Marker interface for portlet settings managing tags"""
    64 
    67 
    65 
    68 
    66 #
    69 #
    67 # Tags management
    70 # Themes management
    68 #
    71 #
    69 
    72 
    70 THEMES_MANAGER_KEY = 'pyams_content.themes.manager'
    73 THEMES_MANAGER_KEY = 'pyams_content.themes.manager'
    71 THEMES_INFO_KEY = 'pyams_content.themes.info'
    74 THEMES_INFO_KEY = 'pyams_content.themes.info'
    72 
    75 
    94 
    97 
    95 
    98 
    96 class IPortletThemesSettings(Interface):
    99 class IPortletThemesSettings(Interface):
    97     """Interface for portlet settings managing themes"""
   100     """Interface for portlet settings managing themes"""
    98 
   101 
       
   102     themes = ThesaurusTermsListField(title=_("Themes"),
       
   103                                      required=False)
       
   104 
    99 
   105 
   100 class IPortletThemesSettingsTarget(Interface):
   106 class IPortletThemesSettingsTarget(Interface):
   101     """Marker interface for portlet settings managing themes"""
   107     """Marker interface for portlet settings managing themes"""
       
   108 
       
   109 
       
   110 #
       
   111 # Collections management
       
   112 #
       
   113 
       
   114 COLLECTIONS_MANAGER_KEY = 'pyams_content.collections.manager'
       
   115 COLLECTIONS_INFO_KEY = 'pyams_content.collections.info'
       
   116 
       
   117 
       
   118 class ICollectionsManager(IThesaurusContextManager):
       
   119     """Collections manager interface"""
       
   120 
       
   121 
       
   122 class ICollectionsManagerTarget(IThesaurusContextManagerTarget):
       
   123     """Marker interface for tools managing collections"""
       
   124 
       
   125 
       
   126 class ICollectionsInfo(Interface):
       
   127     """Collections information interface"""
       
   128 
       
   129     collections = ThesaurusTermsListField(title=_("Collections"),
       
   130                                           required=False)
       
   131 
       
   132 
       
   133 class ICollectionsTarget(Interface):
       
   134     """Collections target interface"""
       
   135 
       
   136 
       
   137 PORTLET_SETTINGS_COLLECTIONS_KEY = 'pyams_content.portlet.collections.settings'
       
   138 
       
   139 
       
   140 class IPortletCollectionsSettings(Interface):
       
   141     """Interface for portlet settings managing collections"""
       
   142 
       
   143     collections = ThesaurusTermsListField(title=_("Collections"),
       
   144                                           required=False)
       
   145 
       
   146 
       
   147 class IPortletCollectionsSettingsTarget(Interface):
       
   148     """Marker interface for portlet settings managing collections"""