diff options
| author | Michael Wood <michael.g.wood@intel.com> | 2015-02-12 15:47:34 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-02-17 14:38:32 +0000 |
| commit | 208f40dc0542e39b5664ffd957213020e05220b2 (patch) | |
| tree | 2857f50e92b8b8bee041c290ad746b34053b3c07 | |
| parent | baa38a14c7d3a71b650b6362641bddbe7aaa3315 (diff) | |
| download | poky-208f40dc0542e39b5664ffd957213020e05220b2.tar.gz | |
bitbake: toaster: Set the machines page default pagesize to 100
This brings it into line with the all layers and targets pages
(Bitbake rev: 7c862ae4e3c3a00f2b37c2272007ce64304359bd)
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rwxr-xr-x | bitbake/lib/toaster/toastergui/views.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py index 1553c7475e..338b8c36f2 100755 --- a/bitbake/lib/toaster/toastergui/views.py +++ b/bitbake/lib/toaster/toastergui/views.py | |||
| @@ -2746,7 +2746,7 @@ if toastermain.settings.MANAGED: | |||
| 2746 | # define here what parameters the view needs in the GET portion in order to | 2746 | # define here what parameters the view needs in the GET portion in order to |
| 2747 | # be able to display something. 'count' and 'page' are mandatory for all views | 2747 | # be able to display something. 'count' and 'page' are mandatory for all views |
| 2748 | # that use paginators. | 2748 | # that use paginators. |
| 2749 | (pagesize, orderby) = _get_parameters_values(request, 10, 'name:+') | 2749 | (pagesize, orderby) = _get_parameters_values(request, 100, 'name:+') |
| 2750 | mandatory_parameters = { 'count': pagesize, 'page' : 1, 'orderby' : orderby }; | 2750 | mandatory_parameters = { 'count': pagesize, 'page' : 1, 'orderby' : orderby }; |
| 2751 | retval = _verify_parameters( request.GET, mandatory_parameters ) | 2751 | retval = _verify_parameters( request.GET, mandatory_parameters ) |
| 2752 | if retval: | 2752 | if retval: |
| @@ -2775,6 +2775,7 @@ if toastermain.settings.MANAGED: | |||
| 2775 | if len(to_rm) > 0: | 2775 | if len(to_rm) > 0: |
| 2776 | queryset_all = queryset_all.exclude(layer_version__in=to_rm) | 2776 | queryset_all = queryset_all.exclude(layer_version__in=to_rm) |
| 2777 | 2777 | ||
| 2778 | machine_info = _build_page_range(Paginator(queryset_all, request.GET.get('count', 100)),request.GET.get('page', 1)) | ||
| 2778 | 2779 | ||
| 2779 | context = { | 2780 | context = { |
| 2780 | 'objects' : machine_info, | 2781 | 'objects' : machine_info, |
