[bitbake-devel] [PATCH 08/22] bitbake: toastergui: tables Add name field to layers table

Ed Bartosh ed.bartosh at linux.intel.com
Fri Jul 31 12:09:09 UTC 2015


From: Michael Wood <michael.g.wood at intel.com>

This field is required by the typeahead in the new project page to do
the name matching on.

Signed-off-by: Michael Wood <michael.g.wood at intel.com>
Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
---
 lib/toaster/toastergui/tables.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/toaster/toastergui/tables.py b/lib/toaster/toastergui/tables.py
index 782ae80..8d5166be 100644
--- a/lib/toaster/toastergui/tables.py
+++ b/lib/toaster/toastergui/tables.py
@@ -196,6 +196,11 @@ class LayersTable(ToasterTable):
                         field_name="layerdetailurl",
                         computation = lambda x: reverse('layerdetails', args=(project.id, x.id)))
 
+        self.add_column(title="name",
+                        displayable = False,
+                        field_name="name",
+                        computation = lambda x: x.layer.name)
+
 
 
 
-- 
2.1.4




More information about the bitbake-devel mailing list