From d81e5141c10a97bf5764892f9b20933b751c1da3 Mon Sep 17 00:00:00 2001 From: Alexandru DAMIAN Date: Fri, 6 Feb 2015 15:32:18 +0000 Subject: bitbake: toaster: display Toaster mode and version in debug mode This patch displays the current running mode and checked-out git branch as Toaster version when running in debug mode. (Bitbake rev: 93e4f8c44273f4657c5be4c00b61db12aa875e31) Signed-off-by: Alexandru DAMIAN Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/views.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'bitbake/lib/toaster/toastergui/views.py') diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py index b67a6767b3..4b770ff5db 100755 --- a/bitbake/lib/toaster/toastergui/views.py +++ b/bitbake/lib/toaster/toastergui/views.py @@ -1709,10 +1709,12 @@ if toastermain.settings.MANAGED: # the context processor that supplies data used across all the pages def managedcontextprocessor(request): + import subprocess ret = { "projects": Project.objects.all(), "MANAGED" : toastermain.settings.MANAGED, - "DEBUG" : toastermain.settings.DEBUG + "DEBUG" : toastermain.settings.DEBUG, + "TOASTER_VERSION": toastermain.settings.TOASTER_VERSION, } if 'project_id' in request.session: try: @@ -3057,7 +3059,9 @@ else: return { "projects": [], "MANAGED" : toastermain.settings.MANAGED, - "DEBUG" : toastermain.settings.DEBUG + "DEBUG" : toastermain.settings.DEBUG, + "TOASTER_VERSION": toastermain.settings.TOASTER_VERSION, + } -- cgit v1.2.3-54-g00ecf