diff options
author | Michael Wood <michael.g.wood@intel.com> | 2015-02-03 17:48:45 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-02-10 23:07:50 +0000 |
commit | 50719afbc2f3484173fa0a2acfda9ece46894bcd (patch) | |
tree | af24bf705f79cb292382839816c8113ad4aab0d5 /bitbake/lib/toaster/toastergui/views.py | |
parent | 02b7704052df42004d3433ccb9ed7882d5b3efd6 (diff) | |
download | ast2050-yocto-poky-50719afbc2f3484173fa0a2acfda9ece46894bcd.zip ast2050-yocto-poky-50719afbc2f3484173fa0a2acfda9ece46894bcd.tar.gz |
bitbake: toaster: All machines Add layer name order by functions
Allow the layer name to be sorted alphabetically in the machines table.
Also fix the default ordering to be machine name
(Bitbake rev: 8fffd7b5fd53bd66ed7621595f57e2cae416e80d)
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/views.py')
-rwxr-xr-x | bitbake/lib/toaster/toastergui/views.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py index c89b67b..2e52d2b 100755 --- a/bitbake/lib/toaster/toastergui/views.py +++ b/bitbake/lib/toaster/toastergui/views.py @@ -2777,7 +2777,7 @@ if toastermain.settings.MANAGED: # define here what parameters the view needs in the GET portion in order to # be able to display something. 'count' and 'page' are mandatory for all views # that use paginators. - (pagesize, orderby) = _get_parameters_values(request, 10, 'updated:+') + (pagesize, orderby) = _get_parameters_values(request, 10, 'name:+') mandatory_parameters = { 'count': pagesize, 'page' : 1, 'orderby' : orderby }; retval = _verify_parameters( request.GET, mandatory_parameters ) if retval: @@ -2815,6 +2815,8 @@ if toastermain.settings.MANAGED: }, { 'name': 'Layer', 'clclass': 'layer', + 'orderfield': _get_toggle_order(request, "layer_version__layer__name"), + 'ordericon' : _get_toggle_order_icon(request, "layer_version__layer__name"), }, { 'name': 'Layer source', 'clclass': 'source', |