From 769fe390c9da8388e6739b4189957660c5e5db1e Mon Sep 17 00:00:00 2001
From: Belen Barros Pena <belen.barros.pena@intel.com>
Date: Fri, 31 Jan 2014 03:46:05 +0000
Subject: [PATCH] bitbake: toaster: Set tasks minimum table

Each Toaster table has a set of minimum columns that cannot be
hidden by users. The checkboxes for such columns are disabled
in the "Edit columns" menu. This patch sets the disabled
checkboxes for the tasks table to match the design specification
by adding the clclass attribute to the columns that are
not part of the minimum table.

Signed-off-by: Belen Barros Pena  <belen.barros.pena@intel.com>
---
 bitbake/lib/toaster/toastergui/views.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py
index 37e2af2..3e01500 100644
--- a/bitbake/lib/toaster/toastergui/views.py
+++ b/bitbake/lib/toaster/toastergui/views.py
@@ -454,6 +454,7 @@ def tasks(request, build_id):
                 {
                     'name':'Executed',
                     'qhelp':"This value tells you if a task had to run in order to generate the task output (executed), or if the output was provided by another task and therefore the task didn't need to run (not executed)",
+                    'clclass': 'task_type',
                     'orderfield': _get_toggle_order(request, "task_executed"),
                     'ordericon':_get_toggle_order_icon(request, "task_executed"),
                        'filter' : {
@@ -469,6 +470,7 @@ def tasks(request, build_id):
                 {
                     'name':'Outcome',
                     'qhelp':'This column tells you if executed tasks succeeded, failed or restored output from the <code>sstate-cache</code> directory or mirrors. It also tells you why not executed tasks did not need to run',
+                    'clclass': 'task_outcome',
                     'orderfield': _get_toggle_order(request, "outcome"),
                     'ordericon':_get_toggle_order_icon(request, "outcome"),
                     'filter' : {
@@ -488,6 +490,7 @@ def tasks(request, build_id):
                 {
                     'name':'Cache attempt',
                     'qhelp':'This column tells you if a task tried to restore output from the <code>sstate-cache</code> directory or mirrors, and what was the result: Succeeded, Failed or File not in cache',
+                    'clclass': 'cache_attempt',
                     'orderfield': _get_toggle_order(request, "sstate_result"),
                     'ordericon':_get_toggle_order_icon(request, "sstate_result"),
                     'filter' : {
@@ -505,6 +508,7 @@ def tasks(request, build_id):
                 {
                     'name':'Time (secs)',
                     'qhelp':'How long it took the task to finish, expressed in seconds',
+                    'clclass': 'task_time',
                     'orderfield': _get_toggle_order(request, "elapsed_time"),
                     'ordericon':_get_toggle_order_icon(request, "elapsed_time"),
                     'clclass': 'time_taken',
-- 
1.8.1.4

