src/pyams_content/component/theme/interfaces/__init__.py
changeset 829 f933926ed0a1
parent 800 2b5460ecb254
child 947 b5eeec049869
--- a/src/pyams_content/component/theme/interfaces/__init__.py	Tue Jul 10 16:59:55 2018 +0200
+++ b/src/pyams_content/component/theme/interfaces/__init__.py	Wed Jul 11 10:18:10 2018 +0200
@@ -58,13 +58,16 @@
 class IPortletTagsSettings(Interface):
     """Interface for portlet settings managing tags"""
 
+    tags = ThesaurusTermsListField(title=_("Tags"),
+                                   required=False)
+
 
 class IPortletTagsSettingsTarget(Interface):
     """Marker interface for portlet settings managing tags"""
 
 
 #
-# Tags management
+# Themes management
 #
 
 THEMES_MANAGER_KEY = 'pyams_content.themes.manager'
@@ -96,6 +99,50 @@
 class IPortletThemesSettings(Interface):
     """Interface for portlet settings managing themes"""
 
+    themes = ThesaurusTermsListField(title=_("Themes"),
+                                     required=False)
+
 
 class IPortletThemesSettingsTarget(Interface):
     """Marker interface for portlet settings managing themes"""
+
+
+#
+# Collections management
+#
+
+COLLECTIONS_MANAGER_KEY = 'pyams_content.collections.manager'
+COLLECTIONS_INFO_KEY = 'pyams_content.collections.info'
+
+
+class ICollectionsManager(IThesaurusContextManager):
+    """Collections manager interface"""
+
+
+class ICollectionsManagerTarget(IThesaurusContextManagerTarget):
+    """Marker interface for tools managing collections"""
+
+
+class ICollectionsInfo(Interface):
+    """Collections information interface"""
+
+    collections = ThesaurusTermsListField(title=_("Collections"),
+                                          required=False)
+
+
+class ICollectionsTarget(Interface):
+    """Collections target interface"""
+
+
+PORTLET_SETTINGS_COLLECTIONS_KEY = 'pyams_content.portlet.collections.settings'
+
+
+class IPortletCollectionsSettings(Interface):
+    """Interface for portlet settings managing collections"""
+
+    collections = ThesaurusTermsListField(title=_("Collections"),
+                                          required=False)
+
+
+class IPortletCollectionsSettingsTarget(Interface):
+    """Marker interface for portlet settings managing collections"""