def admin_group(self): ''' admin group page :return: template ''' self.result['menu_list'] = get_menu_list() self.result['groups'] = KMGroup.all()
def admin_group_save(self): ''' admin group page :return: template ''' KMUserAdmin.save_group(self.data) self.result['menu_list'] = get_menu_list() self.result['groups'] = KMGroup.all()
def admin_group_edit(self): ''' admin group page :return: template ''' id = self.data.get_request_parameter("km_group_edit_id") self.result['menu_list'] = get_menu_list() self.result['group'] = KMGroup.get(id) self.result['groups'] = KMGroup.all()
def admin_user_edit(self): ''' admin user page :return: template ''' id = self.data.get_request_parameter("km_user_edit_id") self.result['menu_list'] = get_menu_list() self.result['user'] = KMUser.get(id) self.result['groups'] = KMGroup.all() self.result['roles'] = KMRole.all()
def admin_group_save(self): ''' admin group page :return: template ''' id = self.data.get_request_parameter("id") delete = self.data.get_request_parameter("delete", default=None) if delete is None: group = KMGroup.get(id) group.set_data(self.data) group.save() else: KMGroup.delete_by_id(id) self.result['menu_list'] = get_menu_list() self.result['groups'] = KMGroup.all()
def admin_group_save(self): ''' admin group page :return: template ''' id = self.data.get_request_parameter("id"); delete = self.data.get_request_parameter("delete", default=None); if delete is None: group = KMGroup.get(id) group.set_data(self.data) group.save() else: KMGroup.delete_by_id(id) self.result['menu_list'] = get_menu_list() self.result['groups'] = KMGroup.all()