22 from pyams_thesaurus.schema import ThesaurusTermsListField |
22 from pyams_thesaurus.schema import ThesaurusTermsListField |
23 from zope.interface import Interface |
23 from zope.interface import Interface |
24 |
24 |
25 from pyams_content import _ |
25 from pyams_content import _ |
26 |
26 |
|
27 |
|
28 # |
|
29 # Tags management |
|
30 # |
|
31 |
|
32 TAGS_MANAGER_KEY = 'pyams_content.tags.manager' |
|
33 TAGS_INFO_KEY = 'pyams_content.tags.info' |
|
34 |
|
35 |
|
36 class ITagsManager(IThesaurusContextManager): |
|
37 """Tags manager interface""" |
|
38 |
|
39 |
|
40 class ITagsManagerTarget(IThesaurusContextManagerTarget): |
|
41 """Marker interface for tags manager""" |
|
42 |
|
43 |
|
44 class ITagsInfo(Interface): |
|
45 """Tags information interface""" |
|
46 |
|
47 tags = ThesaurusTermsListField(title=_("Tags"), |
|
48 required=False) |
|
49 |
|
50 |
|
51 class ITagsTarget(Interface): |
|
52 """Tags target interface""" |
|
53 |
|
54 |
|
55 PORTLET_SETTINGS_TAGS_KEY = 'pyams_content.portlet.tags.settings' |
|
56 |
|
57 |
|
58 class IPortletTagsSettings(Interface): |
|
59 """Interface for portlet settings managing tags""" |
|
60 |
|
61 |
|
62 class IPortletTagsSettingsTarget(Interface): |
|
63 """Marker interface for portlet settings managing tags""" |
|
64 |
|
65 |
|
66 # |
|
67 # Tags management |
|
68 # |
27 |
69 |
28 THEMES_MANAGER_KEY = 'pyams_content.themes.manager' |
70 THEMES_MANAGER_KEY = 'pyams_content.themes.manager' |
29 THEMES_INFO_KEY = 'pyams_content.themes.info' |
71 THEMES_INFO_KEY = 'pyams_content.themes.info' |
30 |
72 |
31 |
73 |