equal
deleted
inserted
replaced
9 from logilab.common.decorators import cached |
9 from logilab.common.decorators import cached |
10 from logilab.mtconverter import html_escape |
10 from logilab.mtconverter import html_escape |
11 |
11 |
12 from cubicweb.schema import display_name |
12 from cubicweb.schema import display_name |
13 from cubicweb.selectors import one_line_rset, implements, match_user_groups |
13 from cubicweb.selectors import one_line_rset, implements, match_user_groups |
|
14 from cubicweb.view import EntityView |
14 from cubicweb.web import INTERNAL_FIELD_VALUE |
15 from cubicweb.web import INTERNAL_FIELD_VALUE |
15 from cubicweb.web.form import EntityForm |
16 from cubicweb.web.form import FormMixIn |
16 from cubicweb.web.action import Action |
17 from cubicweb.web.action import Action |
17 from cubicweb.web.views.baseviews import PrimaryView, EntityView |
18 from cubicweb.web.views.baseviews import PrimaryView, EntityView |
18 |
19 |
19 |
20 |
20 class UserPreferencesEntityAction(Action): |
21 class UserPreferencesEntityAction(Action): |
91 |
92 |
92 def call(self): |
93 def call(self): |
93 self.cell_call(0, 0) |
94 self.cell_call(0, 0) |
94 |
95 |
95 |
96 |
96 class EditGroups(EntityForm): |
97 class EditGroups(FormMixIn, EntityView): |
97 """displays a simple euser / egroups editable table""" |
98 """displays a simple euser / egroups editable table""" |
98 |
99 |
99 id = 'editgroups' |
100 id = 'editgroups' |
100 __select__ = implements('EUser') |
101 __select__ = implements('EUser') |
101 |
102 |