summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/urls.py
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2015-05-11 18:51:28 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-05-14 18:04:09 +0100
commit23f5b009e0ebf59cfcc9ae90a1084468fc88e42f (patch)
tree06eb458cbd9a95dd635160adac7d90aeae6afea1 /bitbake/lib/toaster/toastergui/urls.py
parent7f8c44771cc6219ad7e58da7840fffbe93f11b39 (diff)
downloadpoky-23f5b009e0ebf59cfcc9ae90a1084468fc88e42f.tar.gz
bitbake: toaster: Port All recipes, layers and machines to ToasterTables
Port of the main tables to the new ToasterTable widget. (Bitbake rev: 6de539d5953b2dca2a9ed75556a59764337a194c) Signed-off-by: Michael Wood <michael.g.wood@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.py28
1 files changed, 23 insertions, 5 deletions
diff --git a/bitbake/lib/toaster/toastergui/urls.py b/bitbake/lib/toaster/toastergui/urls.py
index d686c967dc..d0c176b593 100644
--- a/bitbake/lib/toaster/toastergui/urls.py
+++ b/bitbake/lib/toaster/toastergui/urls.py
@@ -17,9 +17,11 @@
17# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 17# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 18
19from django.conf.urls import patterns, include, url 19from django.conf.urls import patterns, include, url
20from django.views.generic import RedirectView 20from django.views.generic import RedirectView, TemplateView
21 21
22from django.http import HttpResponseBadRequest 22from django.http import HttpResponseBadRequest
23import tables
24from widgets import ToasterTemplateView
23 25
24urlpatterns = patterns('toastergui.views', 26urlpatterns = patterns('toastergui.views',
25 # landing page 27 # landing page
@@ -77,19 +79,34 @@ urlpatterns = patterns('toastergui.views',
77 79
78 url(r'^project/$', lambda x: HttpResponseBadRequest(), name='base_project'), 80 url(r'^project/$', lambda x: HttpResponseBadRequest(), name='base_project'),
79 81
80 url(r'^project/(?P<pid>\d+)$', 'project', name='project'), 82 url(r'^project/(?P<pid>\d+)/$', 'project', name='project'),
81 url(r'^project/(?P<pid>\d+)/configuration$', 'projectconf', name='projectconf'), 83 url(r'^project/(?P<pid>\d+)/configuration$', 'projectconf', name='projectconf'),
82 url(r'^project/(?P<pid>\d+)/builds/$', 'projectbuilds', name='projectbuilds'), 84 url(r'^project/(?P<pid>\d+)/builds/$', 'projectbuilds', name='projectbuilds'),
83 85
84 url(r'^project/(?P<pid>\d+)/layers/$', 'layers', name='all-layers'),
85 url(r'^project/(?P<pid>\d+)/layer/(?P<layerid>\d+)$', 'layerdetails', name='layerdetails'), 86 url(r'^project/(?P<pid>\d+)/layer/(?P<layerid>\d+)$', 'layerdetails', name='layerdetails'),
86 url(r'^project/(?P<pid>\d+)/layer/$', lambda x,pid: HttpResponseBadRequest(), name='base_layerdetails'), 87 url(r'^project/(?P<pid>\d+)/layer/$', lambda x,pid: HttpResponseBadRequest(), name='base_layerdetails'),
87 88
88 # the import layer is a project-specific functionality; 89 # the import layer is a project-specific functionality;
89 url(r'^project/(?P<pid>\d+)/importlayer$', 'importlayer', name='importlayer'), 90 url(r'^project/(?P<pid>\d+)/importlayer$', 'importlayer', name='importlayer'),
90 91
91 url(r'^project/(?P<pid>\d+)/targets/$', 'targets', name='all-targets'), 92 url(r'^project/(?P<pid>\d+)/machines/$',
92 url(r'^project/(?P<pid>\d+)/machines/$', 'machines', name='all-machines'), 93 ToasterTemplateView.as_view(template_name="generic-toastertable-page.html"),
94 { 'table_name': tables.MachinesTable.__name__.lower(),
95 'title' : 'All compatible machines' },
96 name="all-machines"),
97
98 url(r'^project/(?P<pid>\d+)/recipes/$',
99 ToasterTemplateView.as_view(template_name="generic-toastertable-page.html"),
100 { 'table_name': tables.RecipesTable.__name__.lower(),
101 'title' : 'All compatible recipes' },
102 name="all-targets"),
103
104 url(r'^project/(?P<pid>\d+)/layers/$',
105 ToasterTemplateView.as_view(template_name="generic-toastertable-page.html"),
106 { 'table_name': tables.LayersTable.__name__.lower(),
107 'title' : 'All compatible layers' },
108 name="all-layers"),
109
93 110
94 url(r'^xhr_build/$', 'xhr_build', name='xhr_build'), 111 url(r'^xhr_build/$', 'xhr_build', name='xhr_build'),
95 url(r'^xhr_projectbuild/(?P<pid>\d+)$', 'xhr_projectbuild', name='xhr_projectbuild'), 112 url(r'^xhr_projectbuild/(?P<pid>\d+)$', 'xhr_projectbuild', name='xhr_projectbuild'),
@@ -100,6 +117,7 @@ urlpatterns = patterns('toastergui.views',
100 url(r'^xhr_datatypeahead/(?P<pid>\d+)$', 'xhr_datatypeahead', name='xhr_datatypeahead'), 117 url(r'^xhr_datatypeahead/(?P<pid>\d+)$', 'xhr_datatypeahead', name='xhr_datatypeahead'),
101 url(r'^xhr_importlayer/$', 'xhr_importlayer', name='xhr_importlayer'), 118 url(r'^xhr_importlayer/$', 'xhr_importlayer', name='xhr_importlayer'),
102 url(r'^xhr_updatelayer/$', 'xhr_updatelayer', name='xhr_updatelayer'), 119 url(r'^xhr_updatelayer/$', 'xhr_updatelayer', name='xhr_updatelayer'),
120 url(r'^xhr_tables/(?P<pid>\d+)/', include('toastergui.tables')),
103 121
104 # dashboard for failed build requests 122 # dashboard for failed build requests
105 url(r'^project/(?P<pid>\d+)/buildrequest/(?P<brid>\d+)$', 'buildrequestdetails', name='buildrequestdetails'), 123 url(r'^project/(?P<pid>\d+)/buildrequest/(?P<brid>\d+)$', 'buildrequestdetails', name='buildrequestdetails'),