src/pyams_content/component/theme/interfaces/__init__.py
changeset 0 7c0001cacf8e
child 7 cbc55162b64e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/pyams_content/component/theme/interfaces/__init__.py	Thu Oct 08 13:37:29 2015 +0200
@@ -0,0 +1,48 @@
+#
+# Copyright (c) 2008-2015 Thierry Florac <tflorac AT ulthar.net>
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+
+__docformat__ = 'restructuredtext'
+
+
+# import standard library
+
+# import interfaces
+from pyams_thesaurus.interfaces.thesaurus import IThesaurusContextManager, IThesaurusContextManagerTarget
+
+# import packages
+from pyams_thesaurus.schema import ThesaurusTermsListField
+from zope.interface import Interface
+
+from pyams_content import _
+
+
+THEMES_MANAGER_KEY = 'pyams_content.themes.manager'
+THEMES_INFO_KEY = 'pyams_content.themes.info'
+
+
+class IThemesManager(IThesaurusContextManager):
+    """Themes manager interface"""
+
+
+class IThemesManagerTarget(IThesaurusContextManagerTarget):
+    """Marker interface for tools managing themes"""
+
+
+class IThemesInfo(Interface):
+    """Themes information interface"""
+
+    themes = ThesaurusTermsListField(title=_("Terms"),
+                                     required=False)
+
+
+class IThemesTarget(Interface):
+    """Themes target interface"""