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:06 +0100 |
commit | 20f4e23bc86290f0a42881a7cac44c41eafa86fc (patch) | |
tree | c94a3c36e146d290311f4422f63174ff5652a624 /lib/toaster/toastergui/urls.py | |
parent | df9f4337bec87024ea6a43138c6080a755eb7fab (diff) | |
download | bitbake-20f4e23bc86290f0a42881a7cac44c41eafa86fc.tar.gz |
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]
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 'lib/toaster/toastergui/urls.py')
-rw-r--r-- | lib/toaster/toastergui/urls.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/toaster/toastergui/urls.py b/lib/toaster/toastergui/urls.py index 9510a386e..15b1063c5 100644 --- a/lib/toaster/toastergui/urls.py +++ b/lib/toaster/toastergui/urls.py @@ -190,7 +190,10 @@ urlpatterns = patterns('toastergui.views', name='xhr_configvaredit'), url(r'^xhr_importlayer/$', 'xhr_importlayer', name='xhr_importlayer'), - url(r'^xhr_updatelayer/$', 'xhr_updatelayer', name='xhr_updatelayer'), + + url(r'^xhr_layer/(?P<layerversion_id>\d+)$', + api.XhrLayer.as_view(), + name='xhr_layer'), # JS Unit tests url(r'^js-unit-tests/$', 'jsunittests', name='js-unit-tests'), |