equal
deleted
inserted
replaced
14 |
14 |
15 |
15 |
16 # import standard library |
16 # import standard library |
17 |
17 |
18 # import interfaces |
18 # import interfaces |
|
19 from pyams_content.component.theme.interfaces import IThemesManagerTarget |
19 from pyams_content.shared.view.interfaces import IViewsManager, VIEW_CONTENT_TYPE |
20 from pyams_content.shared.view.interfaces import IViewsManager, VIEW_CONTENT_TYPE |
20 from zope.annotation.interfaces import IAttributeAnnotatable |
21 from zope.annotation.interfaces import IAttributeAnnotatable |
21 from zope.component.interfaces import ISite |
22 from zope.component.interfaces import ISite |
22 from zope.lifecycleevent.interfaces import IObjectAddedEvent |
23 from zope.lifecycleevent.interfaces import IObjectAddedEvent |
23 |
24 |
27 from pyams_utils.traversing import get_parent |
28 from pyams_utils.traversing import get_parent |
28 from pyramid.events import subscriber |
29 from pyramid.events import subscriber |
29 from zope.interface import implementer |
30 from zope.interface import implementer |
30 |
31 |
31 |
32 |
32 @implementer(IViewsManager, IAttributeAnnotatable) |
33 @implementer(IViewsManager, IThemesManagerTarget, IAttributeAnnotatable) |
33 class ViewsManager(SharedTool): |
34 class ViewsManager(SharedTool): |
34 """Views manager class""" |
35 """Views manager class""" |
35 |
36 |
36 shared_content_type = VIEW_CONTENT_TYPE |
37 shared_content_type = VIEW_CONTENT_TYPE |
37 shared_content_factory = View |
38 shared_content_factory = View |