summaryrefslogtreecommitdiffstats
path: root/lib/toaster/toastergui/api.py
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2016-08-22 16:42:31 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-02 16:29:36 +0100
commit092ef32e695b43c3337b7116722c4c6eba981396 (patch)
tree7f75fe59e39275e7b091bee828beb6f789175eb0 /lib/toaster/toastergui/api.py
parent2b5728fc5c0e578560506697f271605e80b5918f (diff)
downloadbitbake-contrib-092ef32e695b43c3337b7116722c4c6eba981396.tar.gz
toaster: layerdetails clean ups after integrating local layer changes
A few clean ups for the work done to integrate editing imported local layers into the layer detail page. 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/api.py')
-rw-r--r--lib/toaster/toastergui/api.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/toaster/toastergui/api.py b/lib/toaster/toastergui/api.py
index 8dde1288f..09fb02b8f 100644
--- a/lib/toaster/toastergui/api.py
+++ b/lib/toaster/toastergui/api.py
@@ -135,7 +135,8 @@ class XhrLayer(View):
Method: POST
Args:
- vcs_url, dirpath, commit, up_branch, summary, description, local_source_dir
+ vcs_url, dirpath, commit, up_branch, summary, description,
+ local_source_dir
add_dep = append a layerversion_id as a dependency
rm_dep = remove a layerversion_id as a depedency
@@ -167,7 +168,8 @@ class XhrLayer(View):
if "description" in request.POST:
layer_version.layer.description = request.POST["description"]
if "local_source_dir" in request.POST:
- layer_version.layer.local_source_dir = request.POST["local_source_dir"]
+ layer_version.layer.local_source_dir = \
+ request.POST["local_source_dir"]
if "add_dep" in request.POST:
lvd = LayerVersionDependency(