diff options
| author | David Reyna <David.Reyna@windriver.com> | 2017-11-30 00:55:28 -0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-12-18 15:05:30 +0000 |
| commit | 299e8ff1f7f0888cf630848aa423747fb4f8eedd (patch) | |
| tree | 7ecafbcb82458cb4866007d9bc7e5b24221ae028 /bitbake/lib/toaster/toastergui/widgets.py | |
| parent | 0d9914721a8750071f9b6ec233c23d8451ee1a77 (diff) | |
| download | poky-299e8ff1f7f0888cf630848aa423747fb4f8eedd.tar.gz | |
bitbake: toaster: add 'nobuild' option to Toaster
Add a 'nobuild' option for starting Toaster without the project
and hosted builds support. This allows a Toaster host to provide
local build statistics without opening the host to external users
building projects.
[YOCTO #12315]
(Bitbake rev: 2d14d6004b6add5ce07295fff1144ade2e54e1c9)
Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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): |
