summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/toastergui/urls.py')
-rw-r--r--bitbake/lib/toaster/toastergui/urls.py61
1 files changed, 31 insertions, 30 deletions
diff --git a/bitbake/lib/toaster/toastergui/urls.py b/bitbake/lib/toaster/toastergui/urls.py
index d92f190aed..1ad79a4dd3 100644
--- a/bitbake/lib/toaster/toastergui/urls.py
+++ b/bitbake/lib/toaster/toastergui/urls.py
@@ -1,7 +1,7 @@
1# 1#
2# BitBake Toaster Implementation 2# BitBake Toaster Implementation
3# 3#
4# Copyright (C) 2013 Intel Corporation 4# Copyright (C) 2013-2017 Intel Corporation
5# 5#
6# This program is free software; you can redistribute it and/or modify 6# This program is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License version 2 as 7# it under the terms of the GNU General Public License version 2 as
@@ -25,49 +25,50 @@ from toastergui import buildtables
25from toastergui import typeaheads 25from toastergui import typeaheads
26from toastergui import api 26from toastergui import api
27from toastergui import widgets 27from toastergui import widgets
28from toastergui import views
28 29
29urlpatterns = patterns('toastergui.views', 30urlpatterns = [
30 # landing page 31 # landing page
31 url(r'^landing/$', 'landing', name='landing'), 32 url(r'^landing/$', views.landing, name='landing'),
32 33
33 url(r'^builds/$', 34 url(r'^builds/$',
34 tables.AllBuildsTable.as_view(template_name="builds-toastertable.html"), 35 tables.AllBuildsTable.as_view(template_name="builds-toastertable.html"),
35 name='all-builds'), 36 name='all-builds'),
36 37
37 # build info navigation 38 # build info navigation
38 url(r'^build/(?P<build_id>\d+)$', 'builddashboard', name="builddashboard"), 39 url(r'^build/(?P<build_id>\d+)$', views.builddashboard, name="builddashboard"),
39 url(r'^build/(?P<build_id>\d+)/tasks/$', 40 url(r'^build/(?P<build_id>\d+)/tasks/$',
40 buildtables.BuildTasksTable.as_view( 41 buildtables.BuildTasksTable.as_view(
41 template_name="buildinfo-toastertable.html"), 42 template_name="buildinfo-toastertable.html"),
42 name='tasks'), 43 name='tasks'),
43 44
44 url(r'^build/(?P<build_id>\d+)/task/(?P<task_id>\d+)$', 'task', name='task'), 45 url(r'^build/(?P<build_id>\d+)/task/(?P<task_id>\d+)$', views.task, name='task'),
45 46
46 url(r'^build/(?P<build_id>\d+)/recipes/$', 47 url(r'^build/(?P<build_id>\d+)/recipes/$',
47 buildtables.BuiltRecipesTable.as_view( 48 buildtables.BuiltRecipesTable.as_view(
48 template_name="buildinfo-toastertable.html"), 49 template_name="buildinfo-toastertable.html"),
49 name='recipes'), 50 name='recipes'),
50 51
51 url(r'^build/(?P<build_id>\d+)/recipe/(?P<recipe_id>\d+)/active_tab/(?P<active_tab>\d{1})$', 'recipe', name='recipe'), 52 url(r'^build/(?P<build_id>\d+)/recipe/(?P<recipe_id>\d+)/active_tab/(?P<active_tab>\d{1})$', views.recipe, name='recipe'),
52 53
53 url(r'^build/(?P<build_id>\d+)/recipe/(?P<recipe_id>\d+)$', 'recipe', name='recipe'), 54 url(r'^build/(?P<build_id>\d+)/recipe/(?P<recipe_id>\d+)$', views.recipe, name='recipe'),
54 url(r'^build/(?P<build_id>\d+)/recipe_packages/(?P<recipe_id>\d+)$', 'recipe_packages', name='recipe_packages'), 55 url(r'^build/(?P<build_id>\d+)/recipe_packages/(?P<recipe_id>\d+)$', views.recipe_packages, name='recipe_packages'),
55 56
56 url(r'^build/(?P<build_id>\d+)/packages/$', 57 url(r'^build/(?P<build_id>\d+)/packages/$',
57 buildtables.BuiltPackagesTable.as_view( 58 buildtables.BuiltPackagesTable.as_view(
58 template_name="buildinfo-toastertable.html"), 59 template_name="buildinfo-toastertable.html"),
59 name='packages'), 60 name='packages'),
60 61
61 url(r'^build/(?P<build_id>\d+)/package/(?P<package_id>\d+)$', 'package_built_detail', 62 url(r'^build/(?P<build_id>\d+)/package/(?P<package_id>\d+)$', views.package_built_detail,
62 name='package_built_detail'), 63 name='package_built_detail'),
63 url(r'^build/(?P<build_id>\d+)/package_built_dependencies/(?P<package_id>\d+)$', 64 url(r'^build/(?P<build_id>\d+)/package_built_dependencies/(?P<package_id>\d+)$',
64 'package_built_dependencies', name='package_built_dependencies'), 65 views.package_built_dependencies, name='package_built_dependencies'),
65 url(r'^build/(?P<build_id>\d+)/package_included_detail/(?P<target_id>\d+)/(?P<package_id>\d+)$', 66 url(r'^build/(?P<build_id>\d+)/package_included_detail/(?P<target_id>\d+)/(?P<package_id>\d+)$',
66 'package_included_detail', name='package_included_detail'), 67 views.package_included_detail, name='package_included_detail'),
67 url(r'^build/(?P<build_id>\d+)/package_included_dependencies/(?P<target_id>\d+)/(?P<package_id>\d+)$', 68 url(r'^build/(?P<build_id>\d+)/package_included_dependencies/(?P<target_id>\d+)/(?P<package_id>\d+)$',
68 'package_included_dependencies', name='package_included_dependencies'), 69 views.package_included_dependencies, name='package_included_dependencies'),
69 url(r'^build/(?P<build_id>\d+)/package_included_reverse_dependencies/(?P<target_id>\d+)/(?P<package_id>\d+)$', 70 url(r'^build/(?P<build_id>\d+)/package_included_reverse_dependencies/(?P<target_id>\d+)/(?P<package_id>\d+)$',
70 'package_included_reverse_dependencies', name='package_included_reverse_dependencies'), 71 views.package_included_reverse_dependencies, name='package_included_reverse_dependencies'),
71 72
72 url(r'^build/(?P<build_id>\d+)/target/(?P<target_id>\d+)$', 73 url(r'^build/(?P<build_id>\d+)/target/(?P<target_id>\d+)$',
73 buildtables.InstalledPackagesTable.as_view( 74 buildtables.InstalledPackagesTable.as_view(
@@ -75,11 +76,11 @@ urlpatterns = patterns('toastergui.views',
75 name='target'), 76 name='target'),
76 77
77 78
78 url(r'^dentries/build/(?P<build_id>\d+)/target/(?P<target_id>\d+)$', 'xhr_dirinfo', name='dirinfo_ajax'), 79 url(r'^dentries/build/(?P<build_id>\d+)/target/(?P<target_id>\d+)$', views.xhr_dirinfo, name='dirinfo_ajax'),
79 url(r'^build/(?P<build_id>\d+)/target/(?P<target_id>\d+)/dirinfo$', 'dirinfo', name='dirinfo'), 80 url(r'^build/(?P<build_id>\d+)/target/(?P<target_id>\d+)/dirinfo$', views.dirinfo, name='dirinfo'),
80 url(r'^build/(?P<build_id>\d+)/target/(?P<target_id>\d+)/dirinfo_filepath/_(?P<file_path>(?:/[^/\n]+)*)$', 'dirinfo', name='dirinfo_filepath'), 81 url(r'^build/(?P<build_id>\d+)/target/(?P<target_id>\d+)/dirinfo_filepath/_(?P<file_path>(?:/[^/\n]+)*)$', views.dirinfo, name='dirinfo_filepath'),
81 url(r'^build/(?P<build_id>\d+)/configuration$', 'configuration', name='configuration'), 82 url(r'^build/(?P<build_id>\d+)/configuration$', views.configuration, name='configuration'),
82 url(r'^build/(?P<build_id>\d+)/configvars$', 'configvars', name='configvars'), 83 url(r'^build/(?P<build_id>\d+)/configvars$', views.configvars, name='configvars'),
83 url(r'^build/(?P<build_id>\d+)/buildtime$', 84 url(r'^build/(?P<build_id>\d+)/buildtime$',
84 buildtables.BuildTimeTable.as_view( 85 buildtables.BuildTimeTable.as_view(
85 template_name="buildinfo-toastertable.html"), 86 template_name="buildinfo-toastertable.html"),
@@ -97,26 +98,26 @@ urlpatterns = patterns('toastergui.views',
97 98
98 # image information dir 99 # image information dir
99 url(r'^build/(?P<build_id>\d+)/target/(?P<target_id>\d+)/packagefile/(?P<packagefile_id>\d+)$', 100 url(r'^build/(?P<build_id>\d+)/target/(?P<target_id>\d+)/packagefile/(?P<packagefile_id>\d+)$',
100 'image_information_dir', name='image_information_dir'), 101 views.image_information_dir, name='image_information_dir'),
101 102
102 # build download artifact 103 # build download artifact
103 url(r'^build/(?P<build_id>\d+)/artifact/(?P<artifact_type>\w+)/id/(?P<artifact_id>\w+)', 'build_artifact', name="build_artifact"), 104 url(r'^build/(?P<build_id>\d+)/artifact/(?P<artifact_type>\w+)/id/(?P<artifact_id>\w+)', views.build_artifact, name="build_artifact"),
104 105
105 # project URLs 106 # project URLs
106 url(r'^newproject/$', 'newproject', name='newproject'), 107 url(r'^newproject/$', views.newproject, name='newproject'),
107 108
108 url(r'^projects/$', 109 url(r'^projects/$',
109 tables.ProjectsTable.as_view(template_name="projects-toastertable.html"), 110 tables.ProjectsTable.as_view(template_name="projects-toastertable.html"),
110 name='all-projects'), 111 name='all-projects'),
111 112
112 url(r'^project/(?P<pid>\d+)/$', 'project', name='project'), 113 url(r'^project/(?P<pid>\d+)/$', views.project, name='project'),
113 url(r'^project/(?P<pid>\d+)/configuration$', 'projectconf', name='projectconf'), 114 url(r'^project/(?P<pid>\d+)/configuration$', views.projectconf, name='projectconf'),
114 url(r'^project/(?P<pid>\d+)/builds/$', 115 url(r'^project/(?P<pid>\d+)/builds/$',
115 tables.ProjectBuildsTable.as_view(template_name="projectbuilds-toastertable.html"), 116 tables.ProjectBuildsTable.as_view(template_name="projectbuilds-toastertable.html"),
116 name='projectbuilds'), 117 name='projectbuilds'),
117 118
118 # the import layer is a project-specific functionality; 119 # the import layer is a project-specific functionality;
119 url(r'^project/(?P<pid>\d+)/importlayer$', 'importlayer', name='importlayer'), 120 url(r'^project/(?P<pid>\d+)/importlayer$', views.importlayer, name='importlayer'),
120 121
121 # the table pages that have been converted to ToasterTable widget 122 # the table pages that have been converted to ToasterTable widget
122 url(r'^project/(?P<pid>\d+)/machines/$', 123 url(r'^project/(?P<pid>\d+)/machines/$',
@@ -142,7 +143,7 @@ urlpatterns = patterns('toastergui.views',
142 name="projectlayers"), 143 name="projectlayers"),
143 144
144 url(r'^project/(?P<pid>\d+)/layer/(?P<layerid>\d+)$', 145 url(r'^project/(?P<pid>\d+)/layer/(?P<layerid>\d+)$',
145 'layerdetails', name='layerdetails'), 146 views.layerdetails, name='layerdetails'),
146 147
147 url(r'^project/(?P<pid>\d+)/layer/(?P<layerid>\d+)/recipes/$', 148 url(r'^project/(?P<pid>\d+)/layer/(?P<layerid>\d+)/recipes/$',
148 tables.LayerRecipesTable.as_view(template_name="generic-toastertable-page.html"), 149 tables.LayerRecipesTable.as_view(template_name="generic-toastertable-page.html"),
@@ -166,7 +167,7 @@ urlpatterns = patterns('toastergui.views',
166 name="customrecipe"), 167 name="customrecipe"),
167 168
168 url(r'^project/(?P<pid>\d+)/customrecipe/(?P<recipe_id>\d+)/download$', 169 url(r'^project/(?P<pid>\d+)/customrecipe/(?P<recipe_id>\d+)/download$',
169 'customrecipe_download', 170 views.customrecipe_download,
170 name="customrecipedownload"), 171 name="customrecipedownload"),
171 172
172 url(r'^project/(?P<pid>\d+)/recipe/(?P<recipe_id>\d+)$', 173 url(r'^project/(?P<pid>\d+)/recipe/(?P<recipe_id>\d+)$',
@@ -186,9 +187,9 @@ urlpatterns = patterns('toastergui.views',
186 typeaheads.GitRevisionTypeAhead.as_view(), 187 typeaheads.GitRevisionTypeAhead.as_view(),
187 name='xhr_gitrevtypeahead'), 188 name='xhr_gitrevtypeahead'),
188 189
189 url(r'^xhr_testreleasechange/(?P<pid>\d+)$', 'xhr_testreleasechange', 190 url(r'^xhr_testreleasechange/(?P<pid>\d+)$', views.xhr_testreleasechange,
190 name='xhr_testreleasechange'), 191 name='xhr_testreleasechange'),
191 url(r'^xhr_configvaredit/(?P<pid>\d+)$', 'xhr_configvaredit', 192 url(r'^xhr_configvaredit/(?P<pid>\d+)$', views.xhr_configvaredit,
192 name='xhr_configvaredit'), 193 name='xhr_configvaredit'),
193 194
194 url(r'^xhr_layer/(?P<pid>\d+)/(?P<layerversion_id>\d+)$', 195 url(r'^xhr_layer/(?P<pid>\d+)/(?P<layerversion_id>\d+)$',
@@ -200,7 +201,7 @@ urlpatterns = patterns('toastergui.views',
200 name='xhr_layer'), 201 name='xhr_layer'),
201 202
202 # JS Unit tests 203 # JS Unit tests
203 url(r'^js-unit-tests/$', 'jsunittests', name='js-unit-tests'), 204 url(r'^js-unit-tests/$', views.jsunittests, name='js-unit-tests'),
204 205
205 # image customisation functionality 206 # image customisation functionality
206 url(r'^xhr_customrecipe/(?P<recipe_id>\d+)' 207 url(r'^xhr_customrecipe/(?P<recipe_id>\d+)'
@@ -237,4 +238,4 @@ urlpatterns = patterns('toastergui.views',
237 238
238 # default redirection 239 # default redirection
239 url(r'^$', RedirectView.as_view(url='landing', permanent=True)), 240 url(r'^$', RedirectView.as_view(url='landing', permanent=True)),
240) 241]