fromcubicweb.web.views.ajaxcontrollerimportAjaxFunctionclassListUser(AjaxFunction):__regid__='list_users'# __regid__ is the name of the exposed function__select__=match_user_groups('managers')output_type='json'def__call__(self):return[ufor(u,)inself._cw.execute('Any L WHERE U login L')]