187 class CWUserManagementView(StartupView): |
187 class CWUserManagementView(StartupView): |
188 __regid__ = 'cw.users-management' |
188 __regid__ = 'cw.users-management' |
189 __select__ = StartupView.__select__ & match_user_groups('managers') |
189 __select__ = StartupView.__select__ & match_user_groups('managers') |
190 cache_max_age = 0 # disable caching |
190 cache_max_age = 0 # disable caching |
191 # XXX one could wish to display for instance only user's firstname/surname |
191 # XXX one could wish to display for instance only user's firstname/surname |
192 # for non managers but filtering out NULL cause crash with an ldapuser |
192 # for non managers but filtering out NULL caused crash with an ldapuser |
193 # source. |
193 # source. The ldapuser source has been dropped and this code can be updated. |
194 rql = ('Any U,US,F,S,U,UAA,UDS, L,UAA,USN,UDSN ORDERBY L WHERE U is CWUser, ' |
194 rql = ('Any U,US,F,S,U,UAA,UDS, L,UAA,USN,UDSN ORDERBY L WHERE U is CWUser, ' |
195 'U login L, U firstname F, U surname S, ' |
195 'U login L, U firstname F, U surname S, ' |
196 'U in_state US, US name USN, ' |
196 'U in_state US, US name USN, ' |
197 'U primary_email UA?, UA address UAA, ' |
197 'U primary_email UA?, UA address UAA, ' |
198 'U cw_source UDS, US name UDSN') |
198 'U cw_source UDS, US name UDSN') |