162 |
162 |
163 # user / groups management views ############################################### |
163 # user / groups management views ############################################### |
164 |
164 |
165 class ManageUsersAction(actions.ManagersAction): |
165 class ManageUsersAction(actions.ManagersAction): |
166 __regid__ = 'cwuser' # see rewrite rule /cwuser |
166 __regid__ = 'cwuser' # see rewrite rule /cwuser |
167 title = _('users management') |
167 title = _('users and groups') |
168 category = 'manage' |
168 category = 'manage' |
169 |
169 |
170 |
170 |
171 class CWUserManagementView(StartupView): |
171 class CWUserManagementView(StartupView): |
172 __regid__ = 'cw.user-management' |
172 __regid__ = 'cw.user-management' |
173 rql = ('Any U, F, S, U, L ORDERBY L WHERE U is CWUser, U login L, U firstname F, U surname S') |
173 rql = ('Any U, F, S, U, L ORDERBY L WHERE U is CWUser, U login L, U firstname F, U surname S') |
174 title = _('users management') |
174 title = _('users and groups management') |
175 |
175 |
176 def call(self, **kwargs): |
176 def call(self, **kwargs): |
177 self.w('<h1>%s</h1>' % self._cw._(self.title)) |
177 self.w('<h1>%s</h1>' % self._cw._(self.title)) |
178 for etype in ('CWUser', 'CWGroup'): |
178 for etype in ('CWUser', 'CWGroup'): |
179 eschema = self._cw.vreg.schema.eschema(etype) |
179 eschema = self._cw.vreg.schema.eschema(etype) |