diff options
author | David Reyna <David.Reyna@windriver.com> | 2014-03-25 10:42:55 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-28 13:44:52 +0000 |
commit | bae133add9b5a23d9c0f29ecdf2fe0db6f7677c2 (patch) | |
tree | b29b6fe8e28b7d589b16b453919c31ca56814baa /bitbake/lib/toaster/toastergui/templatetags/projecttags.py | |
parent | 877dcd709e4cd54847e756e7a8dc1de6fa926967 (diff) | |
download | poky-bae133add9b5a23d9c0f29ecdf2fe0db6f7677c2.tar.gz |
bitbake: toaster: added file types to the Outputs column in the build
The file types are displayed in the Outputs column in the build page. The file types
are derived from the target image filenames.
[YOCTO #5947]
(Bitbake rev: 842abf6759894690d5bc770f4ea2ac15b127e5e2)
Signed-off-by: Farrell Wymore <farrell.wymore@windriver.com>
Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templatetags/projecttags.py')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templatetags/projecttags.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/templatetags/projecttags.py b/bitbake/lib/toaster/toastergui/templatetags/projecttags.py index 76166ca945..aa0ba3909e 100644 --- a/bitbake/lib/toaster/toastergui/templatetags/projecttags.py +++ b/bitbake/lib/toaster/toastergui/templatetags/projecttags.py | |||
@@ -240,3 +240,12 @@ def format_vpackage_namehelp(name): | |||
240 | r += ' title="' + name + ' only has dependency information available.">' | 240 | r += ' title="' + name + ' only has dependency information available.">' |
241 | r += '</i>' | 241 | r += '</i>' |
242 | return mark_safe(r) | 242 | return mark_safe(r) |
243 | |||
244 | @register.filter | ||
245 | def get_dict_value(dictionary, key): | ||
246 | """ return the value of a dictionary key | ||
247 | """ | ||
248 | try: | ||
249 | return dictionary[key] | ||
250 | except KeyError: | ||
251 | return '' | ||