# HG changeset patch # User Sylvain Thénault # Date 1304071679 -7200 # Node ID f91e8e25510c38a092e4d1c0de62ad4a09bca9d5 # Parent b156200ebc9dc83d888c36a68f8b3d94625b8490 [users management] enhance users table: show state, primary email and data source; show filter form diff -r b156200ebc9d -r f91e8e25510c web/views/cwuser.py --- a/web/views/cwuser.py Fri Apr 29 19:31:25 2011 +0200 +++ b/web/views/cwuser.py Fri Apr 29 12:07:59 2011 +0200 @@ -170,7 +170,11 @@ class CWUserManagementView(StartupView): __regid__ = 'cw.user-management' - rql = ('Any U, F, S, U, L ORDERBY L WHERE U is CWUser, U login L, U firstname F, U surname S') + rql = ('Any U,USN,F,S,U,UA,UDS, L,UAA,UDSN ORDERBY L WHERE U is CWUser, ' + 'U login L, U firstname F, U surname S, ' + 'U in_state US, US name USN, ' + 'U primary_email UA?, UA address UAA, ' + 'U cw_source UDS, US name UDSN') title = _('users and groups management') def call(self, **kwargs): @@ -191,10 +195,14 @@ def call(self, **kwargs): headers = (display_name(self._cw, 'CWUser', 'plural'), + display_name(self._cw, 'in_state'), self._cw._('firstname'), self._cw._('surname'), - display_name(self._cw, 'CWGroup', 'plural')) + display_name(self._cw, 'CWGroup', 'plural'), + display_name(self._cw, 'primary_email'), + display_name(self._cw, 'CWSource')) super(CWUserTable, self).call( - paginate=True, cellvids={3: 'cw.user-table.group-cell'}, + paginate=True, displayfilter=True, + cellvids={4: 'cw.user-table.group-cell'}, headers=headers, **kwargs)