8 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
8 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
9 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS |
9 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS |
10 # FOR A PARTICULAR PURPOSE. |
10 # FOR A PARTICULAR PURPOSE. |
11 # |
11 # |
12 |
12 |
13 __docformat__ = 'restructuredtext' |
|
14 |
|
15 from zope.interface import Interface, Invalid, invariant |
13 from zope.interface import Interface, Invalid, invariant |
16 from zope.schema import Bool, Choice |
14 from zope.schema import Bool, Choice |
17 |
15 |
18 from pyams_content import _ |
|
19 from pyams_thesaurus.interfaces.thesaurus import IThesaurusContextManager, \ |
16 from pyams_thesaurus.interfaces.thesaurus import IThesaurusContextManager, \ |
20 IThesaurusContextManagerTarget |
17 IThesaurusContextManagerTarget |
21 from pyams_thesaurus.schema import ThesaurusTermsListField |
18 from pyams_thesaurus.schema import ThesaurusTermsListField |
|
19 from pyams_utils.interfaces.inherit import IInheritInfo |
|
20 |
|
21 |
|
22 __docformat__ = 'restructuredtext' |
|
23 |
|
24 from pyams_content import _ |
22 |
25 |
23 |
26 |
24 # |
27 # |
25 # Tags management |
28 # Tags management |
26 # |
29 # |
90 |
93 |
91 class IThemesManagerTarget(IThesaurusContextManagerTarget): |
94 class IThemesManagerTarget(IThesaurusContextManagerTarget): |
92 """Marker interface for tools managing themes""" |
95 """Marker interface for tools managing themes""" |
93 |
96 |
94 |
97 |
95 class IThemesInfo(Interface): |
98 class IThemesInfo(IInheritInfo): |
96 """Themes information interface""" |
99 """Themes information interface""" |
97 |
100 |
98 themes = ThesaurusTermsListField(title=_("Themes"), |
101 themes = ThesaurusTermsListField(title=_("Themes"), |
99 required=False) |
102 required=False) |
100 |
103 |