10 # FOR A PARTICULAR PURPOSE. |
10 # FOR A PARTICULAR PURPOSE. |
11 # |
11 # |
12 |
12 |
13 __docformat__ = 'restructuredtext' |
13 __docformat__ = 'restructuredtext' |
14 |
14 |
|
15 from zope.container.constraints import containers, contains |
|
16 from zope.container.interfaces import IContainer |
|
17 from zope.interface import Attribute, Interface |
|
18 from zope.schema import Text |
15 |
19 |
16 # import standard library |
|
17 |
|
18 # import interfaces |
|
19 from pyams_content.shared.common.interfaces import ISharedSite, IBaseSharedTool, ISharedContent, \ |
20 from pyams_content.shared.common.interfaces import ISharedSite, IBaseSharedTool, ISharedContent, \ |
20 IDeletableElement, IWfSharedContentPortalContext |
21 IDeletableElement, IWfSharedContentPortalContext |
|
22 from pyams_i18n.schema import I18nTextField |
21 from pyams_sequence.interfaces import ISequentialIdTarget |
23 from pyams_sequence.interfaces import ISequentialIdTarget |
22 from pyams_workflow.interfaces import IWorkflowPublicationSupport |
24 from pyams_workflow.interfaces import IWorkflowPublicationSupport |
23 from zope.container.interfaces import IContainer |
|
24 |
|
25 # import packages |
|
26 from zope.container.constraints import containers, contains |
|
27 from zope.interface import Attribute, Interface |
|
28 |
25 |
29 from pyams_content import _ |
26 from pyams_content import _ |
30 |
27 |
31 |
28 |
32 BLOG_CONTENT_TYPE = 'blog' |
29 BLOG_CONTENT_TYPE = 'blog' |
66 folder_factory = Attribute("Blog folder factory") |
63 folder_factory = Attribute("Blog folder factory") |
67 |
64 |
68 topic_content_type = Attribute("Topic content type") |
65 topic_content_type = Attribute("Topic content type") |
69 topic_content_factory = Attribute("Topic content factory") |
66 topic_content_factory = Attribute("Topic content factory") |
70 |
67 |
|
68 description = I18nTextField(title=_("Meta-description"), |
|
69 description=_("The blog's description is 'hidden' into HTML's page headers; but it " |
|
70 "can be seen, for example, in some search engines results as content's " |
|
71 "description; if description is empty, content's header will be used."), |
|
72 required=False) |
|
73 |
|
74 notepad = Text(title=_("Notepad"), |
|
75 description=_("Internal information to be known about this content"), |
|
76 required=False) |
|
77 |
71 |
78 |
72 class IBlogManagerFactory(Interface): |
79 class IBlogManagerFactory(Interface): |
73 """Blog manager factory interface""" |
80 """Blog manager factory interface""" |