diff options
author | Michael Wood <michael.g.wood@intel.com> | 2015-08-04 22:46:37 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-08-06 16:04:46 -0500 |
commit | 4d7944d6adda400af9f8188a7d3de526a2a94384 (patch) | |
tree | 7f6146f339a57a6199e9bb4e35479c59b4a11160 /bitbake/lib | |
parent | 951e40dd7d77ca5fcad35204817cfae916c267e5 (diff) | |
download | poky-4d7944d6adda400af9f8188a7d3de526a2a94384.tar.gz |
bitbake: toastergui: views Standardise the fields project layer response
We need to keep consistent the field names of these objects so that we
can use the object response from different calls. e.g. layer dependences
or listing layers in the project.
(Bitbake rev: 5c7004908f6916c0d279299c47b9dca3237148ec)
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rwxr-xr-x | bitbake/lib/toaster/toastergui/views.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py index 6a219ede0c..4563eaf01a 100755 --- a/bitbake/lib/toaster/toastergui/views.py +++ b/bitbake/lib/toaster/toastergui/views.py | |||
@@ -2224,9 +2224,10 @@ if True: | |||
2224 | "id": x.layercommit.pk, | 2224 | "id": x.layercommit.pk, |
2225 | "orderid": x.pk, | 2225 | "orderid": x.pk, |
2226 | "name" : x.layercommit.layer.name, | 2226 | "name" : x.layercommit.layer.name, |
2227 | "giturl": x.layercommit.layer.vcs_url, | 2227 | "vcs_url": x.layercommit.layer.vcs_url, |
2228 | "vcs_reference" : x.layercommit.get_vcs_reference(), | ||
2228 | "url": x.layercommit.layer.layer_index_url, | 2229 | "url": x.layercommit.layer.layer_index_url, |
2229 | "layerdetailurl": reverse("layerdetails", args=(prj.id, x.layercommit.pk,)), | 2230 | "layerdetailurl": x.layercommit.get_detailspage_url(prj.pk), |
2230 | # This branch name is actually the release | 2231 | # This branch name is actually the release |
2231 | "branch" : { "name" : x.layercommit.get_vcs_reference(), "layersource" : x.layercommit.up_branch.layer_source.name if x.layercommit.up_branch != None else None}}, | 2232 | "branch" : { "name" : x.layercommit.get_vcs_reference(), "layersource" : x.layercommit.up_branch.layer_source.name if x.layercommit.up_branch != None else None}}, |
2232 | prj.projectlayer_set.all().order_by("id")), | 2233 | prj.projectlayer_set.all().order_by("id")), |