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 datetime import datetime |
13 from datetime import datetime |
16 |
14 |
17 from zope.interface import Interface |
15 from zope.interface import Interface |
18 from zope.schema import Choice, Float, Int, TextLine, URI |
16 from zope.schema import Choice, Float, Int, TextLine, URI |
19 |
17 |
20 from pyams_content import _ |
|
21 from pyams_content.shared.common import ISharedContent |
18 from pyams_content.shared.common import ISharedContent |
22 from pyams_content.shared.common.interfaces.types import ITypedSharedToolPortalContext, \ |
19 from pyams_content.shared.common.interfaces import ISharedToolPortalContext, \ |
23 IWfTypedSharedContentPortalContext |
20 IWfSharedContentPortalContext |
24 from pyams_content.shared.resource.schema import AgeRangeField |
21 from pyams_content.shared.resource.schema import AgeRangeField |
25 from pyams_i18n.schema import I18nHTMLField, I18nTextField |
22 from pyams_i18n.schema import I18nHTMLField, I18nTextField |
26 from pyams_sequence.interfaces import IInternalReferencesList |
23 from pyams_sequence.interfaces import IInternalReferencesList |
|
24 |
|
25 |
|
26 __docformat__ = 'restructuredtext' |
|
27 |
|
28 from pyams_content import _ |
27 |
29 |
28 |
30 |
29 RESOURCE_CONTENT_TYPE = 'resource' |
31 RESOURCE_CONTENT_TYPE = 'resource' |
30 RESOURCE_CONTENT_NAME = _("Resource") |
32 RESOURCE_CONTENT_NAME = _("Resource") |
31 |
33 |
32 |
34 |
33 class IResourceManager(ITypedSharedToolPortalContext): |
35 class IResourceManager(ISharedToolPortalContext): |
34 """Resource manager interface""" |
36 """Resource manager interface""" |
35 |
37 |
36 |
38 |
37 class IResourceManagerFactory(Interface): |
39 class IResourceManagerFactory(Interface): |
38 """Resource manager factory interface""" |
40 """Resource manager factory interface""" |
39 |
41 |
40 |
42 |
41 class IWfResource(IWfTypedSharedContentPortalContext, IInternalReferencesList): |
43 class IWfResource(IWfSharedContentPortalContext, IInternalReferencesList): |
42 """Resource content interface""" |
44 """Resource content interface""" |
43 |
45 |
44 |
46 |
45 class IWfResourceFactory(Interface): |
47 class IWfResourceFactory(Interface): |
46 """Resource content factory interface""" |
48 """Resource content factory interface""" |