equal
deleted
inserted
replaced
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' |
13 """PyAMS_paget.metadirectives module |
14 |
14 |
|
15 This module provides interface of ZCML directives. |
|
16 """ |
15 |
17 |
16 # import standard packages |
|
17 |
|
18 # import interfaces |
|
19 |
|
20 # import packages |
|
21 from zope.configuration.fields import GlobalObject |
18 from zope.configuration.fields import GlobalObject |
22 from zope.interface import Interface |
19 from zope.interface import Interface |
23 from zope.schema import TextLine |
20 from zope.schema import TextLine |
|
21 |
|
22 |
|
23 __docformat__ = 'restructuredtext' |
24 |
24 |
25 |
25 |
26 class IPageletDirective(Interface): |
26 class IPageletDirective(Interface): |
27 """Pagelet ZCML directive interface""" |
27 """Pagelet ZCML directive interface""" |
28 |
28 |
32 |
32 |
33 context = GlobalObject(title='The interface or class this view is for', |
33 context = GlobalObject(title='The interface or class this view is for', |
34 required=False) |
34 required=False) |
35 |
35 |
36 layer = GlobalObject(title="The request interface or class this pagelet is for", |
36 layer = GlobalObject(title="The request interface or class this pagelet is for", |
37 description="Defaults to zope.publisher.interfaces.browser.IDefaultBrowserLayer.", |
37 description="Defaults to pyramid.interfaces.IRequest", |
38 required=False) |
38 required=False) |
39 |
39 |
40 view = GlobalObject(title='View class', |
40 view = GlobalObject(title='View class', |
41 description='The view function or class', |
41 description='The view function or class', |
42 required=True) |
42 required=True) |
44 permission = TextLine(title='Permission', |
44 permission = TextLine(title='Permission', |
45 description='The permission needed to use the view', |
45 description='The permission needed to use the view', |
46 required=False) |
46 required=False) |
47 |
47 |
48 |
48 |
|
49 # pylint: disable=vo-value-for-parameter |
49 IPageletDirective.setTaggedValue('keyword_arguments', True) |
50 IPageletDirective.setTaggedValue('keyword_arguments', True) |