diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/widgets.py')
-rw-r--r-- | bitbake/lib/toaster/toastergui/widgets.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/widgets.py b/bitbake/lib/toaster/toastergui/widgets.py index 67c1ff9615..a1792d997f 100644 --- a/bitbake/lib/toaster/toastergui/widgets.py +++ b/bitbake/lib/toaster/toastergui/widgets.py | |||
@@ -41,6 +41,7 @@ import types | |||
41 | import json | 41 | import json |
42 | import collections | 42 | import collections |
43 | import re | 43 | import re |
44 | import os | ||
44 | 45 | ||
45 | from toastergui.tablefilter import TableFilterMap | 46 | from toastergui.tablefilter import TableFilterMap |
46 | 47 | ||
@@ -86,6 +87,9 @@ class ToasterTable(TemplateView): | |||
86 | context['table_name'] = type(self).__name__.lower() | 87 | context['table_name'] = type(self).__name__.lower() |
87 | context['empty_state'] = self.empty_state | 88 | context['empty_state'] = self.empty_state |
88 | 89 | ||
90 | # global variables | ||
91 | context['project_enable'] = ('1' == os.environ.get('TOASTER_BUILDSERVER')) | ||
92 | |||
89 | return context | 93 | return context |
90 | 94 | ||
91 | def get(self, request, *args, **kwargs): | 95 | def get(self, request, *args, **kwargs): |