summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/urls.py
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2016-08-22 16:42:33 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-02 18:09:50 +0100
commit2318f92580eeb7042bf9d4d6dd2f514856b69d4a (patch)
tree335f577e66b538d3de73d7bdd8bd3885a1a7af2f /bitbake/lib/toaster/toastergui/urls.py
parent3b87f2895add3944bffa430e209446defed57afa (diff)
downloadpoky-2318f92580eeb7042bf9d4d6dd2f514856b69d4a.tar.gz
bitbake: toaster: Move Custom image recipe rest api to api file
We now have a dedicated file for the rest API so move and rework for class based views. Also clean up all flake8 identified warnings. Remove unused imports from toastergui views. The original work for this API was done by Elliot Smith, Ed Bartosh, Michael Wood and Dave Lerner (Bitbake rev: 37c2b4f105d7334cdd83d9675af787f4327e7fe7) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Elliot Smith <elliot.smith@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.py18
1 files changed, 12 insertions, 6 deletions
diff --git a/bitbake/lib/toaster/toastergui/urls.py b/bitbake/lib/toaster/toastergui/urls.py
index 9892d2ab93..9509cd5928 100644
--- a/bitbake/lib/toaster/toastergui/urls.py
+++ b/bitbake/lib/toaster/toastergui/urls.py
@@ -199,19 +199,25 @@ urlpatterns = patterns('toastergui.views',
199 url(r'^js-unit-tests/$', 'jsunittests', name='js-unit-tests'), 199 url(r'^js-unit-tests/$', 'jsunittests', name='js-unit-tests'),
200 200
201 # image customisation functionality 201 # image customisation functionality
202 url(r'^xhr_customrecipe/(?P<recipe_id>\d+)/packages/(?P<package_id>\d+|)$', 202 url(r'^xhr_customrecipe/(?P<recipe_id>\d+)'
203 'xhr_customrecipe_packages', name='xhr_customrecipe_packages'), 203 '/packages/(?P<package_id>\d+|)$',
204 api.XhrCustomRecipePackages.as_view(),
205 name='xhr_customrecipe_packages'),
204 206
205 url(r'^xhr_customrecipe/(?P<recipe_id>\d+)/packages/$', 207 url(r'^xhr_customrecipe/(?P<recipe_id>\d+)/packages/$',
206 'xhr_customrecipe_packages', name='xhr_customrecipe_packages'), 208 api.XhrCustomRecipePackages.as_view(),
209 name='xhr_customrecipe_packages'),
207 210
208 url(r'^xhr_customrecipe/(?P<recipe_id>\d+)$', 'xhr_customrecipe_id', 211 url(r'^xhr_customrecipe/(?P<recipe_id>\d+)$',
212 api.XhrCustomRecipeId.as_view(),
209 name='xhr_customrecipe_id'), 213 name='xhr_customrecipe_id'),
210 url(r'^xhr_customrecipe/', 'xhr_customrecipe', 214
215 url(r'^xhr_customrecipe/',
216 api.XhrCustomRecipe.as_view(),
211 name='xhr_customrecipe'), 217 name='xhr_customrecipe'),
212 218
213 url(r'^xhr_buildrequest/project/(?P<pid>\d+)$', 219 url(r'^xhr_buildrequest/project/(?P<pid>\d+)$',
214 api.XhrBuildRequest.as_view(), 220 api.XhrBuildRequest.as_view(),
215 name='xhr_buildrequest'), 221 name='xhr_buildrequest'),
216 222
217 url(r'^mostrecentbuilds$', api.MostRecentBuildsView.as_view(), 223 url(r'^mostrecentbuilds$', api.MostRecentBuildsView.as_view(),