13 __docformat__ = 'restructuredtext' |
13 __docformat__ = 'restructuredtext' |
14 |
14 |
15 # import standard library |
15 # import standard library |
16 |
16 |
17 # import interfaces |
17 # import interfaces |
|
18 from pyams_skin.layer import IPyAMSLayer |
18 from zope.component.interfaces import IObjectEvent, ObjectEvent |
19 from zope.component.interfaces import IObjectEvent, ObjectEvent |
19 |
20 |
20 # import packages |
21 # import packages |
|
22 from pyams_template.template import layout_config |
21 from zope.interface import implementer, Interface, Attribute |
23 from zope.interface import implementer, Interface, Attribute |
22 from zope.configuration.fields import GlobalInterface |
24 from zope.configuration.fields import GlobalInterface |
23 from zope.schema import Text, TextLine, Choice, Int |
25 from zope.schema import Text, TextLine, Choice, Int |
24 |
26 |
25 from pyams_skin import _ |
27 from pyams_skin import _ |
61 skin = Choice(title=_("Presentation skin"), |
63 skin = Choice(title=_("Presentation skin"), |
62 description=_("This skin will be used to handle presentation templates"), |
64 description=_("This skin will be used to handle presentation templates"), |
63 vocabulary='PyAMS skins') |
65 vocabulary='PyAMS skins') |
64 |
66 |
65 |
67 |
|
68 @layout_config(template='templates/fullpage-layout.pt', layer=IPyAMSLayer) |
66 class IFullPage(Interface): |
69 class IFullPage(Interface): |
67 """Full page marker interface""" |
70 """Full page marker interface""" |
68 |
71 |
69 |
72 |
|
73 @layout_config(template='templates/fullpage-modal-layout.pt', layer=IPyAMSLayer) |
70 class IModalFullPage(IFullPage): |
74 class IModalFullPage(IFullPage): |
71 """Full page modal dialog marker interface""" |
75 """Full page modal dialog marker interface""" |
72 |
76 |
73 dialog_class = Attribute("Default dialog CSS class") |
77 dialog_class = Attribute("Default dialog CSS class") |
74 |
78 |
75 |
79 |
|
80 @layout_config(template='templates/inner-layout.pt', layer=IPyAMSLayer) |
76 class IInnerPage(Interface): |
81 class IInnerPage(Interface): |
77 """Inner page marker interface""" |
82 """Inner page marker interface""" |
78 |
83 |
79 |
84 |
|
85 @layout_config(template='templates/widget-layout.pt', layer=IPyAMSLayer) |
80 class IWidgetInnerPage(IInnerPage): |
86 class IWidgetInnerPage(IInnerPage): |
81 """Inner page with widget marker interface""" |
87 """Inner page with widget marker interface""" |
82 |
88 |
83 |
89 |
|
90 @layout_config(template='templates/modal-layout.pt', layer=IPyAMSLayer) |
84 class IModalPage(Interface): |
91 class IModalPage(Interface): |
85 """Modal page marker interface""" |
92 """Modal page marker interface""" |
86 |
93 |
87 |
94 |
88 class IDialog(IModalPage): |
95 class IDialog(IModalPage): |