diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2015-03-09 11:57:08 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-03-09 14:33:50 +0000 |
commit | 4004aebb1b505967410494ed152b44eab0bf6cb4 (patch) | |
tree | d8d7065241d320ca4f5bbcc5857a1441f6e1ebb7 /bitbake/lib/toaster/toastergui/urls.py | |
parent | ece39b4c47a5c9b55c291d6b4acdeb29e8d8884f (diff) | |
download | poky-4004aebb1b505967410494ed152b44eab0bf6cb4.tar.gz |
bitbake: toastergui: bring back base URLs for pages that need them
Some URLs, although invalid on their own, are used in JS to
build valid page pointers. Previous patch removed two of these URLs,
breaking the display of several patches.
This patch re-adds these URLs with different names, and returns
400 Bad Request empty pages on them, which is consistent with the
intended usage of these URLs.
(Bitbake rev: 73afee5ddb2e89dcec65854639b19b8860232d89)
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/urls.py')
-rw-r--r-- | bitbake/lib/toaster/toastergui/urls.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/urls.py b/bitbake/lib/toaster/toastergui/urls.py index 64f790293a..8a7fef1dee 100644 --- a/bitbake/lib/toaster/toastergui/urls.py +++ b/bitbake/lib/toaster/toastergui/urls.py | |||
@@ -19,6 +19,8 @@ | |||
19 | from django.conf.urls import patterns, include, url | 19 | from django.conf.urls import patterns, include, url |
20 | from django.views.generic import RedirectView | 20 | from django.views.generic import RedirectView |
21 | 21 | ||
22 | from django.http import HttpResponseBadRequest | ||
23 | |||
22 | urlpatterns = patterns('toastergui.views', | 24 | urlpatterns = patterns('toastergui.views', |
23 | # landing page | 25 | # landing page |
24 | url(r'^landing/$', 'landing', name='landing'), | 26 | url(r'^landing/$', 'landing', name='landing'), |
@@ -78,11 +80,13 @@ urlpatterns = patterns('toastergui.views', | |||
78 | 80 | ||
79 | url(r'^layers/$', 'layers', name='layers'), | 81 | url(r'^layers/$', 'layers', name='layers'), |
80 | url(r'^layer/(?P<layerid>\d+)/$', 'layerdetails', name='layerdetails'), | 82 | url(r'^layer/(?P<layerid>\d+)/$', 'layerdetails', name='layerdetails'), |
83 | url(r'^layer/$', lambda x: HttpResponseBadRequest(), name='base_layerdetails'), | ||
81 | url(r'^targets/$', 'targets', name='all-targets'), | 84 | url(r'^targets/$', 'targets', name='all-targets'), |
82 | url(r'^machines/$', 'machines', name='machines'), | 85 | url(r'^machines/$', 'machines', name='machines'), |
83 | 86 | ||
84 | url(r'^projects/$', 'projects', name='all-projects'), | 87 | url(r'^projects/$', 'projects', name='all-projects'), |
85 | 88 | ||
89 | url(r'^project/$', lambda x: HttpResponseBadRequest(), name='base_project'), | ||
86 | url(r'^project/(?P<pid>\d+)/$', 'project', name='project'), | 90 | url(r'^project/(?P<pid>\d+)/$', 'project', name='project'), |
87 | url(r'^project/(?P<pid>\d+)/configuration$', 'projectconf', name='projectconf'), | 91 | url(r'^project/(?P<pid>\d+)/configuration$', 'projectconf', name='projectconf'), |
88 | url(r'^project/(?P<pid>\d+)/builds$', 'projectbuilds', name='projectbuilds'), | 92 | url(r'^project/(?P<pid>\d+)/builds$', 'projectbuilds', name='projectbuilds'), |