web/views/cwuser.py
changeset 9015 65b8236e1bb4
parent 8665 e65af61bde7d
child 10033 b3a1d15965d9
equal deleted inserted replaced
9014:dfa4da8a53a0 9015:65b8236e1bb4
   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')