diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/views.py')
-rwxr-xr-x | bitbake/lib/toaster/toastergui/views.py | 103 |
1 files changed, 3 insertions, 100 deletions
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py index 4dac62c568..bfae304587 100755 --- a/bitbake/lib/toaster/toastergui/views.py +++ b/bitbake/lib/toaster/toastergui/views.py | |||
@@ -807,18 +807,6 @@ eans multiple licenses exist that cover different parts of the source', | |||
807 | ] | 807 | ] |
808 | } | 808 | } |
809 | 809 | ||
810 | if not toastermain.settings.MANAGED or build.project is None: | ||
811 | |||
812 | tc_layerDir = { | ||
813 | 'name':'Layer directory', | ||
814 | 'qhelp':'Location in disk of the layer providing the recipe that builds the package', | ||
815 | 'orderfield' : _get_toggle_order( request, "recipe__layer_version__local_path" ), | ||
816 | 'ordericon' : _get_toggle_order_icon( request, "recipe__layer_version__local_path" ), | ||
817 | 'orderkey' : "recipe__layer_version__local_path", | ||
818 | 'clclass' : 'layer_directory', | ||
819 | 'hidden' : 1, | ||
820 | } | ||
821 | context['tablecols'].append(tc_layerDir) | ||
822 | 810 | ||
823 | response = render(request, template, context) | 811 | response = render(request, template, context) |
824 | _set_parameters_values(pagesize, orderby, request) | 812 | _set_parameters_values(pagesize, orderby, request) |
@@ -1209,9 +1197,6 @@ def tasks_common(request, build_id, variant, task_anchor): | |||
1209 | ]} | 1197 | ]} |
1210 | 1198 | ||
1211 | 1199 | ||
1212 | if not toastermain.settings.MANAGED or build.project is None: | ||
1213 | context['tablecols'].append(tc_log) | ||
1214 | |||
1215 | response = render(request, template, context) | 1200 | response = render(request, template, context) |
1216 | _set_parameters_values(pagesize, orderby, request) | 1201 | _set_parameters_values(pagesize, orderby, request) |
1217 | return response | 1202 | return response |
@@ -1336,18 +1321,6 @@ def recipes(request, build_id): | |||
1336 | ] | 1321 | ] |
1337 | } | 1322 | } |
1338 | 1323 | ||
1339 | if not toastermain.settings.MANAGED or build.project is None: | ||
1340 | context['tablecols'].append( | ||
1341 | { | ||
1342 | 'name':'Layer directory', | ||
1343 | 'qhelp':'Path to the layer prodiving the recipe', | ||
1344 | 'orderfield': _get_toggle_order(request, "layer_version__local_path"), | ||
1345 | 'ordericon':_get_toggle_order_icon(request, "layer_version__local_path"), | ||
1346 | 'orderkey' : 'layer_version__local_path', | ||
1347 | 'clclass': 'layer_version__local_path', 'hidden': 1, | ||
1348 | }) | ||
1349 | |||
1350 | |||
1351 | response = render(request, template, context) | 1324 | response = render(request, template, context) |
1352 | _set_parameters_values(pagesize, orderby, request) | 1325 | _set_parameters_values(pagesize, orderby, request) |
1353 | return response | 1326 | return response |
@@ -1550,18 +1523,6 @@ def bpackage(request, build_id): | |||
1550 | ] | 1523 | ] |
1551 | } | 1524 | } |
1552 | 1525 | ||
1553 | if not toastermain.settings.MANAGED or build.project is None: | ||
1554 | |||
1555 | tc_layerDir = { | ||
1556 | 'name':'Layer directory', | ||
1557 | 'qhelp':'Path to the layer providing the recipe that builds the package', | ||
1558 | 'orderfield': _get_toggle_order(request, "recipe__layer_version__local_path"), | ||
1559 | 'ordericon':_get_toggle_order_icon(request, "recipe__layer_version__local_path"), | ||
1560 | 'orderkey' : 'recipe__layer_version__local_path', | ||
1561 | 'clclass': 'recipe__layer_version__local_path', 'hidden': 1, | ||
1562 | } | ||
1563 | context['tablecols'].append(tc_layerDir) | ||
1564 | |||
1565 | response = render(request, template, context) | 1526 | response = render(request, template, context) |
1566 | _set_parameters_values(pagesize, orderby, request) | 1527 | _set_parameters_values(pagesize, orderby, request) |
1567 | return response | 1528 | return response |
@@ -1877,7 +1838,6 @@ def managedcontextprocessor(request): | |||
1877 | import subprocess | 1838 | import subprocess |
1878 | ret = { | 1839 | ret = { |
1879 | "projects": Project.objects.all(), | 1840 | "projects": Project.objects.all(), |
1880 | "MANAGED" : toastermain.settings.MANAGED, | ||
1881 | "DEBUG" : toastermain.settings.DEBUG, | 1841 | "DEBUG" : toastermain.settings.DEBUG, |
1882 | "TOASTER_BRANCH": toastermain.settings.TOASTER_BRANCH, | 1842 | "TOASTER_BRANCH": toastermain.settings.TOASTER_BRANCH, |
1883 | "TOASTER_REVISION" : toastermain.settings.TOASTER_REVISION, | 1843 | "TOASTER_REVISION" : toastermain.settings.TOASTER_REVISION, |
@@ -1892,8 +1852,8 @@ from orm.models import Project, ProjectLayer, ProjectTarget, ProjectVariable | |||
1892 | 1852 | ||
1893 | # we have a set of functions if we're in managed mode, or | 1853 | # we have a set of functions if we're in managed mode, or |
1894 | # a default "page not available" simple functions for interactive mode | 1854 | # a default "page not available" simple functions for interactive mode |
1895 | if toastermain.settings.MANAGED: | ||
1896 | 1855 | ||
1856 | if True: | ||
1897 | from django.contrib.auth.models import User | 1857 | from django.contrib.auth.models import User |
1898 | from django.contrib.auth import authenticate, login | 1858 | from django.contrib.auth import authenticate, login |
1899 | from django.contrib.auth.decorators import login_required | 1859 | from django.contrib.auth.decorators import login_required |
@@ -2937,11 +2897,8 @@ if toastermain.settings.MANAGED: | |||
2937 | return context | 2897 | return context |
2938 | 2898 | ||
2939 | 2899 | ||
2940 | else: | 2900 | @_template_renderer('builds.html') |
2941 | # shows the "all builds" page for interactive mode; this is the old code, simply moved | 2901 | def builds_old(request): |
2942 | |||
2943 | @_template_renderer('build.html') | ||
2944 | def builds(request): | ||
2945 | # define here what parameters the view needs in the GET portion in order to | 2902 | # define here what parameters the view needs in the GET portion in order to |
2946 | # be able to display something. 'count' and 'page' are mandatory for all views | 2903 | # be able to display something. 'count' and 'page' are mandatory for all views |
2947 | # that use paginators. | 2904 | # that use paginators. |
@@ -3132,57 +3089,3 @@ else: | |||
3132 | _set_parameters_values(pagesize, orderby, request) | 3089 | _set_parameters_values(pagesize, orderby, request) |
3133 | 3090 | ||
3134 | return context | 3091 | return context |
3135 | |||
3136 | |||
3137 | |||
3138 | |||
3139 | @_template_renderer('landing_not_managed.html') | ||
3140 | def newproject(request): | ||
3141 | return {} | ||
3142 | |||
3143 | @_template_renderer('landing_not_managed.html') | ||
3144 | def project(request, pid): | ||
3145 | return {} | ||
3146 | |||
3147 | from django.views.decorators.csrf import csrf_exempt | ||
3148 | @csrf_exempt | ||
3149 | @_template_renderer('landing_not_managed.html') | ||
3150 | def xhr_datatypeahead(request, pid): | ||
3151 | return {} | ||
3152 | |||
3153 | |||
3154 | @_template_renderer('landing_not_managed.html') | ||
3155 | def xhr_configvaredit(request, pid): | ||
3156 | return {} | ||
3157 | |||
3158 | @_template_renderer('landing_not_managed.html') | ||
3159 | def importlayer(request): | ||
3160 | return {} | ||
3161 | |||
3162 | @_template_renderer('landing_not_managed.html') | ||
3163 | def projectconf(request, pid): | ||
3164 | return {} | ||
3165 | |||
3166 | @_template_renderer('landing_not_managed.html') | ||
3167 | def projectbuilds(request, pid): | ||
3168 | return {} | ||
3169 | |||
3170 | @_template_renderer('landing_not_managed.html') | ||
3171 | def build_artifact(request, build_id, artifact_type, artifact_id): | ||
3172 | return {} | ||
3173 | |||
3174 | @_template_renderer('landing_not_managed.html') | ||
3175 | def projects(request): | ||
3176 | return {} | ||
3177 | |||
3178 | @_template_renderer('landing_not_managed.html') | ||
3179 | def xhr_importlayer(request): | ||
3180 | return {} | ||
3181 | |||
3182 | @_template_renderer('landing_not_managed.html') | ||
3183 | def xhr_updatelayer(request): | ||
3184 | return {} | ||
3185 | |||
3186 | @_template_renderer('landing_not_managed.html') | ||
3187 | def buildrequestdetails(request, pid, brid): | ||
3188 | return {} | ||