summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2015-01-21 12:59:51 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-01-23 11:33:53 +0000
commitd95e988c83e92719602fe8e0897ea1a097181f98 (patch)
tree47624b9285355ab21675f6b57d47da8c8e71f77a
parent02c49c229e8f3e2d49e78207e35b51dab540f088 (diff)
downloadpoky-d95e988c83e92719602fe8e0897ea1a097181f98.tar.gz
bitbake: toastergui: enable re-ordering when columns are hidden
This patch enables table re-ordering when a sorted-by column is hidden. This is default functionality in toaster table pages, but was not enabled for all columns in this situation. [YOCTO #7125] [YOCTO #7022] (Bitbake rev: c1b9c7a05c1c05fcd73d819e8b0142169106f0da) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xbitbake/lib/toaster/toastergui/views.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py
index f84b120bd6..e718ced570 100755
--- a/bitbake/lib/toaster/toastergui/views.py
+++ b/bitbake/lib/toaster/toastergui/views.py
@@ -513,6 +513,7 @@ eans multiple licenses exist that cover different parts of the source',
513 'qhelp' : 'The name of the recipe building the package', 513 'qhelp' : 'The name of the recipe building the package',
514 'orderfield' : _get_toggle_order( request, "recipe__name" ), 514 'orderfield' : _get_toggle_order( request, "recipe__name" ),
515 'ordericon' : _get_toggle_order_icon( request, "recipe__name" ), 515 'ordericon' : _get_toggle_order_icon( request, "recipe__name" ),
516 'orderkey' : "recipe__name",
516 'clclass' : 'recipe_name', 517 'clclass' : 'recipe_name',
517 'hidden' : 0, 518 'hidden' : 0,
518 } 519 }
@@ -527,6 +528,7 @@ eans multiple licenses exist that cover different parts of the source',
527 'qhelp' : 'The name of the layer providing the recipe that builds the package', 528 'qhelp' : 'The name of the layer providing the recipe that builds the package',
528 'orderfield' : _get_toggle_order( request, "recipe__layer_version__layer__name" ), 529 'orderfield' : _get_toggle_order( request, "recipe__layer_version__layer__name" ),
529 'ordericon' : _get_toggle_order_icon( request, "recipe__layer_version__layer__name" ), 530 'ordericon' : _get_toggle_order_icon( request, "recipe__layer_version__layer__name" ),
531 'orderkey' : "recipe__layer_version__layer__name",
530 'clclass' : 'layer_name', 532 'clclass' : 'layer_name',
531 'hidden' : 1, 533 'hidden' : 1,
532 } 534 }
@@ -535,6 +537,7 @@ eans multiple licenses exist that cover different parts of the source',
535 'qhelp' : 'The Git branch of the layer providing the recipe that builds the package', 537 'qhelp' : 'The Git branch of the layer providing the recipe that builds the package',
536 'orderfield' : _get_toggle_order( request, "recipe__layer_version__branch" ), 538 'orderfield' : _get_toggle_order( request, "recipe__layer_version__branch" ),
537 'ordericon' : _get_toggle_order_icon( request, "recipe__layer_version__branch" ), 539 'ordericon' : _get_toggle_order_icon( request, "recipe__layer_version__branch" ),
540 'orderkey' : "recipe__layer_version__branch",
538 'clclass' : 'layer_branch', 541 'clclass' : 'layer_branch',
539 'hidden' : 1, 542 'hidden' : 1,
540 } 543 }
@@ -576,6 +579,7 @@ eans multiple licenses exist that cover different parts of the source',
576 'qhelp':'Location in disk of the layer providing the recipe that builds the package', 579 'qhelp':'Location in disk of the layer providing the recipe that builds the package',
577 'orderfield' : _get_toggle_order( request, "recipe__layer_version__layer__local_path" ), 580 'orderfield' : _get_toggle_order( request, "recipe__layer_version__layer__local_path" ),
578 'ordericon' : _get_toggle_order_icon( request, "recipe__layer_version__layer__local_path" ), 581 'ordericon' : _get_toggle_order_icon( request, "recipe__layer_version__layer__local_path" ),
582 'orderkey' : "recipe__layer_version__layer__local_path",
579 'clclass' : 'layer_directory', 583 'clclass' : 'layer_directory',
580 'hidden' : 1, 584 'hidden' : 1,
581 } 585 }
@@ -2527,6 +2531,7 @@ if toastermain.settings.MANAGED:
2527 'qhelp': "Where the layer is coming from, for example, if it's part of the OpenEmbedded collection of layers or if it's a layer you have imported", 2531 'qhelp': "Where the layer is coming from, for example, if it's part of the OpenEmbedded collection of layers or if it's a layer you have imported",
2528 'orderfield': _get_toggle_order(request, "layer_source__name"), 2532 'orderfield': _get_toggle_order(request, "layer_source__name"),
2529 'ordericon': _get_toggle_order_icon(request, "layer_source__name"), 2533 'ordericon': _get_toggle_order_icon(request, "layer_source__name"),
2534 'orderkey' : "layer_source__name",
2530 'filter': { 2535 'filter': {
2531 'class': 'layer', 2536 'class': 'layer',
2532 'label': 'Show:', 2537 'label': 'Show:',
@@ -2675,23 +2680,27 @@ if toastermain.settings.MANAGED:
2675 'hidden': 1, 2680 'hidden': 1,
2676 'orderfield': _get_toggle_order(request, "section"), 2681 'orderfield': _get_toggle_order(request, "section"),
2677 'ordericon': _get_toggle_order_icon(request, "section"), 2682 'ordericon': _get_toggle_order_icon(request, "section"),
2683 'orderkey': "section",
2678 }, 2684 },
2679 { 'name': 'License', 2685 { 'name': 'License',
2680 'clclass': 'license', 2686 'clclass': 'license',
2681 'hidden': 1, 2687 'hidden': 1,
2682 'orderfield': _get_toggle_order(request, "license"), 2688 'orderfield': _get_toggle_order(request, "license"),
2683 'ordericon': _get_toggle_order_icon(request, "license"), 2689 'ordericon': _get_toggle_order_icon(request, "license"),
2690 'orderkey': "license",
2684 }, 2691 },
2685 { 'name': 'Layer', 2692 { 'name': 'Layer',
2686 'clclass': 'layer', 2693 'clclass': 'layer',
2687 'orderfield': _get_toggle_order(request, "layer_version__layer__name"), 2694 'orderfield': _get_toggle_order(request, "layer_version__layer__name"),
2688 'ordericon': _get_toggle_order_icon(request, "layer_version__layer__name"), 2695 'ordericon': _get_toggle_order_icon(request, "layer_version__layer__name"),
2696 'orderkey': "layer_version__layer__name",
2689 }, 2697 },
2690 { 'name': 'Layer source', 2698 { 'name': 'Layer source',
2691 'clclass': 'source', 2699 'clclass': 'source',
2692 'qhelp': "Where the target is coming from, for example, if it's part of the OpenEmbedded collection of targets or if it's a target you have imported", 2700 'qhelp': "Where the target is coming from, for example, if it's part of the OpenEmbedded collection of targets or if it's a target you have imported",
2693 'orderfield': _get_toggle_order(request, "layer_source__name"), 2701 'orderfield': _get_toggle_order(request, "layer_source__name"),
2694 'ordericon': _get_toggle_order_icon(request, "layer_source__name"), 2702 'ordericon': _get_toggle_order_icon(request, "layer_source__name"),
2703 'orderkey': "layer_source__name",
2695 'filter': { 2704 'filter': {
2696 'class': 'target', 2705 'class': 'target',
2697 'label': 'Show:', 2706 'label': 'Show:',
@@ -2778,6 +2787,7 @@ if toastermain.settings.MANAGED:
2778 'qhelp': "Where the machine is coming from, for example, if it's part of the OpenEmbedded collection of machines or if it's a machine you have imported", 2787 'qhelp': "Where the machine is coming from, for example, if it's part of the OpenEmbedded collection of machines or if it's a machine you have imported",
2779 'orderfield': _get_toggle_order(request, "layer_source__name"), 2788 'orderfield': _get_toggle_order(request, "layer_source__name"),
2780 'ordericon': _get_toggle_order_icon(request, "layer_source__name"), 2789 'ordericon': _get_toggle_order_icon(request, "layer_source__name"),
2790 'orderkey': "layer_source__name",
2781 'filter': { 2791 'filter': {
2782 'class': 'machine', 2792 'class': 'machine',
2783 'label': 'Show:', 2793 'label': 'Show:',