Example #1
0
 def get_system_role_sub_navbar(self, request, sub_nav_action):
     system_role_count = len(SystemRoleService.all_roles())
     return self.get_sub_nav_bar(
         request,
         self.subpage_model,
         AdminSystemRolePath.admin_system_role_subnav,
         sub_nav_action=sub_nav_action,
         system_role_counts=system_role_count)
Example #2
0
 def get_system_role_list_webpart(self):
     roles = SystemRoleService.all_roles()
     system_role_list_controll = self.get_system_role_list_controll(roles)
     pagefileds = {
         "system_role_list_controll": system_role_list_controll,
         "roles": roles
     }
     return self.get_webpart(
         pagefileds, AdminSystemRolePath.admin_system_role_list_webpart)
Example #3
0
def userrole_list(request):
    page_worker = AdminSystemRolePageWorker(request)
    user_list = page_worker.get_system_role_list_controll(
        SystemRoleService.all_roles())
    return HttpResponse(user_list)