summaryrefslogtreecommitdiffstats
path: root/bitbake/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 18:09:50 +0100
commit50a8d3a34ca89862b41fbe27f87bbe85a772db8b (patch)
tree930cafe5c7aae5263175c0902d9da8168ac1dc65 /bitbake/lib/toaster/toastergui/api.py
parente99b4cd625ca812cdd88a818a1ad11aa93b28d78 (diff)
downloadpoky-50a8d3a34ca89862b41fbe27f87bbe85a772db8b.tar.gz
bitbake: 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. (Bitbake rev: 092ef32e695b43c3337b7116722c4c6eba981396) 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/api.py')
-rw-r--r--bitbake/lib/toaster/toastergui/api.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/api.py b/bitbake/lib/toaster/toastergui/api.py
index 8dde1288fd..09fb02b8fc 100644
--- a/bitbake/lib/toaster/toastergui/api.py
+++ b/bitbake/lib/toaster/toastergui/api.py
@@ -135,7 +135,8 @@ class XhrLayer(View):
135 Method: POST 135 Method: POST
136 136
137 Args: 137 Args:
138 vcs_url, dirpath, commit, up_branch, summary, description, local_source_dir 138 vcs_url, dirpath, commit, up_branch, summary, description,
139 local_source_dir
139 140
140 add_dep = append a layerversion_id as a dependency 141 add_dep = append a layerversion_id as a dependency
141 rm_dep = remove a layerversion_id as a depedency 142 rm_dep = remove a layerversion_id as a depedency
@@ -167,7 +168,8 @@ class XhrLayer(View):
167 if "description" in request.POST: 168 if "description" in request.POST:
168 layer_version.layer.description = request.POST["description"] 169 layer_version.layer.description = request.POST["description"]
169 if "local_source_dir" in request.POST: 170 if "local_source_dir" in request.POST:
170 layer_version.layer.local_source_dir = request.POST["local_source_dir"] 171 layer_version.layer.local_source_dir = \
172 request.POST["local_source_dir"]
171 173
172 if "add_dep" in request.POST: 174 if "add_dep" in request.POST:
173 lvd = LayerVersionDependency( 175 lvd = LayerVersionDependency(