diff options
author | Michael Wood <michael.g.wood@intel.com> | 2016-07-06 18:22:36 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-07-08 09:57:28 +0100 |
commit | 36dec688c7e50e02e55c070f04c396e2d1aa3ef3 (patch) | |
tree | 6072b631d8a122f2364cb896a268e93d0fc680b2 /bitbake/lib/toaster/toastergui/urls.py | |
parent | 903c3c2ef8e31aad287d914dbb18a926cb96e6d0 (diff) | |
download | poky-36dec688c7e50e02e55c070f04c396e2d1aa3ef3.tar.gz |
bitbake: toaster: layerdetails api Fix saving of git revision of a layer
Update, clean up and move the api for updating a layerversion from the
views to api. Also update the layerdetails page to include the
layerversion id in the url getter.
[YOCTO #8952]
(Bitbake rev: 20f4e23bc86290f0a42881a7cac44c41eafa86fc)
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.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/urls.py b/bitbake/lib/toaster/toastergui/urls.py index 9510a386ea..15b1063c59 100644 --- a/bitbake/lib/toaster/toastergui/urls.py +++ b/bitbake/lib/toaster/toastergui/urls.py | |||
@@ -190,7 +190,10 @@ urlpatterns = patterns('toastergui.views', | |||
190 | name='xhr_configvaredit'), | 190 | name='xhr_configvaredit'), |
191 | 191 | ||
192 | url(r'^xhr_importlayer/$', 'xhr_importlayer', name='xhr_importlayer'), | 192 | url(r'^xhr_importlayer/$', 'xhr_importlayer', name='xhr_importlayer'), |
193 | url(r'^xhr_updatelayer/$', 'xhr_updatelayer', name='xhr_updatelayer'), | 193 | |
194 | url(r'^xhr_layer/(?P<layerversion_id>\d+)$', | ||
195 | api.XhrLayer.as_view(), | ||
196 | name='xhr_layer'), | ||
194 | 197 | ||
195 | # JS Unit tests | 198 | # JS Unit tests |
196 | url(r'^js-unit-tests/$', 'jsunittests', name='js-unit-tests'), | 199 | url(r'^js-unit-tests/$', 'jsunittests', name='js-unit-tests'), |