Show More
@@ -74,6 +74,7 b' class AdminUserGroupsView(BaseAppView, D' | |||||
74 | route_name='user_groups_data', request_method='GET', |
|
74 | route_name='user_groups_data', request_method='GET', | |
75 | renderer='json_ext', xhr=True) |
|
75 | renderer='json_ext', xhr=True) | |
76 | def user_groups_list_data(self): |
|
76 | def user_groups_list_data(self): | |
|
77 | self.load_default_context() | |||
77 | column_map = { |
|
78 | column_map = { | |
78 | 'active': 'users_group_active', |
|
79 | 'active': 'users_group_active', | |
79 | 'description': 'user_group_description', |
|
80 | 'description': 'user_group_description', |
@@ -81,6 +81,7 b' class AdminUsersView(BaseAppView, DataGr' | |||||
81 | route_name='users_data', request_method='GET', |
|
81 | route_name='users_data', request_method='GET', | |
82 | renderer='json_ext', xhr=True) |
|
82 | renderer='json_ext', xhr=True) | |
83 | def users_list_data(self): |
|
83 | def users_list_data(self): | |
|
84 | self.load_default_context() | |||
84 | column_map = { |
|
85 | column_map = { | |
85 | 'first_name': 'name', |
|
86 | 'first_name': 'name', | |
86 | 'last_name': 'lastname', |
|
87 | 'last_name': 'lastname', |
@@ -54,6 +54,7 b' class HomeView(BaseAppView):' | |||||
54 | route_name='user_autocomplete_data', request_method='GET', |
|
54 | route_name='user_autocomplete_data', request_method='GET', | |
55 | renderer='json_ext', xhr=True) |
|
55 | renderer='json_ext', xhr=True) | |
56 | def user_autocomplete_data(self): |
|
56 | def user_autocomplete_data(self): | |
|
57 | self.load_default_context() | |||
57 | query = self.request.GET.get('query') |
|
58 | query = self.request.GET.get('query') | |
58 | active = str2bool(self.request.GET.get('active') or True) |
|
59 | active = str2bool(self.request.GET.get('active') or True) | |
59 | include_groups = str2bool(self.request.GET.get('user_groups')) |
|
60 | include_groups = str2bool(self.request.GET.get('user_groups')) | |
@@ -87,6 +88,7 b' class HomeView(BaseAppView):' | |||||
87 | route_name='user_group_autocomplete_data', request_method='GET', |
|
88 | route_name='user_group_autocomplete_data', request_method='GET', | |
88 | renderer='json_ext', xhr=True) |
|
89 | renderer='json_ext', xhr=True) | |
89 | def user_group_autocomplete_data(self): |
|
90 | def user_group_autocomplete_data(self): | |
|
91 | self.load_default_context() | |||
90 | query = self.request.GET.get('query') |
|
92 | query = self.request.GET.get('query') | |
91 | active = str2bool(self.request.GET.get('active') or True) |
|
93 | active = str2bool(self.request.GET.get('active') or True) | |
92 | expand_groups = str2bool(self.request.GET.get('user_groups_expand')) |
|
94 | expand_groups = str2bool(self.request.GET.get('user_groups_expand')) | |
@@ -202,6 +204,7 b' class HomeView(BaseAppView):' | |||||
202 | renderer='json_ext', xhr=True) |
|
204 | renderer='json_ext', xhr=True) | |
203 | def repo_list_data(self): |
|
205 | def repo_list_data(self): | |
204 | _ = self.request.translate |
|
206 | _ = self.request.translate | |
|
207 | self.load_default_context() | |||
205 |
|
208 | |||
206 | query = self.request.GET.get('query') |
|
209 | query = self.request.GET.get('query') | |
207 | repo_type = self.request.GET.get('repo_type') |
|
210 | repo_type = self.request.GET.get('repo_type') |
General Comments 0
You need to be logged in to leave comments.
Login now