equal
deleted
inserted
replaced
15 |
15 |
16 # import standard library |
16 # import standard library |
17 |
17 |
18 # import interfaces |
18 # import interfaces |
19 from hypatia.interfaces import ICatalog |
19 from hypatia.interfaces import ICatalog |
20 # import packages |
|
21 from persistent import Persistent |
20 from persistent import Persistent |
22 from pyramid.events import subscriber |
21 from pyramid.events import subscriber |
23 from pyramid.interfaces import IWSGIApplicationCreatedEvent |
22 from pyramid.interfaces import IWSGIApplicationCreatedEvent |
24 from pyramid.settings import asbool |
23 from pyramid.settings import asbool |
25 from pyramid.threadlocal import get_current_registry |
24 from pyramid.threadlocal import get_current_registry |
30 from zope.lifecycleevent.interfaces import IObjectModifiedEvent |
29 from zope.lifecycleevent.interfaces import IObjectModifiedEvent |
31 from zope.schema.fieldproperty import FieldProperty |
30 from zope.schema.fieldproperty import FieldProperty |
32 from zope.schema.vocabulary import SimpleVocabulary, SimpleTerm |
31 from zope.schema.vocabulary import SimpleVocabulary, SimpleTerm |
33 |
32 |
34 from pyams_content import _ |
33 from pyams_content import _ |
|
34 # import packages |
35 from pyams_content.features.checker import BaseContentChecker |
35 from pyams_content.features.checker import BaseContentChecker |
36 from pyams_content.features.checker.interfaces import IContentChecker, MISSING_VALUE, MISSING_LANG_VALUE, ERROR_VALUE |
36 from pyams_content.features.checker.interfaces import IContentChecker, MISSING_VALUE, MISSING_LANG_VALUE, ERROR_VALUE |
37 from pyams_content.features.review.interfaces import IReviewComments |
37 from pyams_content.features.review.interfaces import IReviewComments |
38 from pyams_content.interfaces import IBaseContentInfo, OWNER_ROLE, MANAGER_ROLE, CONTRIBUTOR_ROLE, READER_ROLE, \ |
38 from pyams_content.interfaces import IBaseContentInfo, OWNER_ROLE, MANAGER_ROLE, CONTRIBUTOR_ROLE, READER_ROLE, \ |
39 GUEST_ROLE |
39 GUEST_ROLE |
125 guests = RolePrincipalsFieldProperty(IWfSharedContentRoles['guests']) |
125 guests = RolePrincipalsFieldProperty(IWfSharedContentRoles['guests']) |
126 |
126 |
127 content_type = None |
127 content_type = None |
128 content_name = None |
128 content_name = None |
129 |
129 |
|
130 handle_content_url = True |
130 handle_header = True |
131 handle_header = True |
|
132 handle_description = True |
131 |
133 |
132 title = FieldProperty(IWfSharedContent['title']) |
134 title = FieldProperty(IWfSharedContent['title']) |
133 short_name = FieldProperty(IWfSharedContent['short_name']) |
135 short_name = FieldProperty(IWfSharedContent['short_name']) |
134 content_url = FieldProperty(IWfSharedContent['content_url']) |
136 content_url = FieldProperty(IWfSharedContent['content_url']) |
135 creator = FieldProperty(IWfSharedContent['creator']) |
137 creator = FieldProperty(IWfSharedContent['creator']) |