equal
deleted
inserted
replaced
9 |
9 |
10 from mx.DateTime import strptime, Error as MxDTError, TimeDelta |
10 from mx.DateTime import strptime, Error as MxDTError, TimeDelta |
11 |
11 |
12 from cubicweb import typed_eid |
12 from cubicweb import typed_eid |
13 from cubicweb.common.registerers import priority_registerer |
13 from cubicweb.common.registerers import priority_registerer |
14 from cubicweb.common.selectors import in_group_selector |
14 from cubicweb.common.selectors import match_user_group |
15 from cubicweb.common.appobject import AppObject |
15 from cubicweb.common.appobject import AppObject |
16 from cubicweb.web import LOGGER, Redirect, RequestError |
16 from cubicweb.web import LOGGER, Redirect, RequestError |
17 |
17 |
18 |
18 |
19 NAVIGATION_PARAMETERS = (('vid', '__redirectvid'), |
19 NAVIGATION_PARAMETERS = (('vid', '__redirectvid'), |
66 a request. There is usually at least one standard "view" controller |
66 a request. There is usually at least one standard "view" controller |
67 and another linked by forms to edit objects ("edit"). |
67 and another linked by forms to edit objects ("edit"). |
68 """ |
68 """ |
69 __registry__ = 'controllers' |
69 __registry__ = 'controllers' |
70 __registerer__ = priority_registerer |
70 __registerer__ = priority_registerer |
71 __selectors__ = (in_group_selector,) |
71 __selectors__ = (match_user_group,) |
72 require_groups = () |
72 require_groups = () |
73 |
73 |
74 def __init__(self, *args, **kwargs): |
74 def __init__(self, *args, **kwargs): |
75 super(Controller, self).__init__(*args, **kwargs) |
75 super(Controller, self).__init__(*args, **kwargs) |
76 # attributes use to control after edition redirection |
76 # attributes use to control after edition redirection |