Patchwork [bitbake-devel,2/9] toaster: disable 'size over total' sort

login
register
mail settings
Submitter Alexandru DAMIAN
Date April 9, 2014, 1:17 p.m.
Message ID <586cd2f6af11cd316a12799b2b9d031e8b7098b6.1397049329.git.alexandru.damian@intel.com>
Download mbox | patch
Permalink /patch/70375/
State New
Headers show

Comments

Alexandru DAMIAN - April 9, 2014, 1:17 p.m.
From: Dave Lerner <dave.lerner@windriver.com>

[YOCTO 6061]

Disable size-over-total table column sorts in the image installed
packages view because that field is a computed field and only model
fields are sortable in the current table toaster implementation.

Signed-off-by: Dave Lerner <dave.lerner@windriver.com>
---
 lib/toaster/toastergui/views.py | 2 --
 1 file changed, 2 deletions(-)

Patch

diff --git a/lib/toaster/toastergui/views.py b/lib/toaster/toastergui/views.py
index 910b3b9..96ce4d7 100644
--- a/lib/toaster/toastergui/views.py
+++ b/lib/toaster/toastergui/views.py
@@ -568,8 +568,6 @@  def target(request, build_id, target_id):
                 {
                     'name':'Size over total (%)',
                     'qhelp':'Proportion of the overall included package size represented by this package',
-                    'orderfield': _get_toggle_order(request, "size"),
-                    'ordericon':_get_toggle_order_icon(request, "size"),
                     'clclass': 'size_over_total',
                     'hidden' : 1,
                 },