summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2016-12-09 16:52:52 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-12-12 20:44:54 +0000
commitccb36cc5499b9f3d93b44f629aff4e3cc0ba4f1c (patch)
tree1807c5e3e64abc20e3c21d51213bdec06fd58608 /bitbake/lib/toaster/toastergui
parentde0295e5bb29510cf08c3680d55fba51902605d8 (diff)
downloadpoky-ccb36cc5499b9f3d93b44f629aff4e3cc0ba4f1c.tar.gz
bitbake: toaster: typeaheads Layers add url to layer REST API to the layer
Add the url to the Layer typeahead so that this can be used later on by the front end code to look up layer details. (Bitbake rev: d195f24a1b30ae8698bff5e87308347b9596a2e2) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui')
-rw-r--r--bitbake/lib/toaster/toastergui/typeaheads.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/typeaheads.py b/bitbake/lib/toaster/toastergui/typeaheads.py
index 5316000209..58c650f8fc 100644
--- a/bitbake/lib/toaster/toastergui/typeaheads.py
+++ b/bitbake/lib/toaster/toastergui/typeaheads.py
@@ -23,6 +23,7 @@ from orm.models import Project
23from django.core.urlresolvers import reverse 23from django.core.urlresolvers import reverse
24from django.core.cache import cache 24from django.core.cache import cache
25 25
26
26class LayersTypeAhead(ToasterTypeAhead): 27class LayersTypeAhead(ToasterTypeAhead):
27 """ Typeahead for layers available and not added in the current project's 28 """ Typeahead for layers available and not added in the current project's
28 configuration """ 29 configuration """
@@ -55,6 +56,8 @@ class LayersTypeAhead(ToasterTypeAhead):
55 'id': layer_version.pk, 56 'id': layer_version.pk,
56 'name': layer_version.layer.name, 57 'name': layer_version.layer.name,
57 'layerdetailurl': layer_version.get_detailspage_url(prj.pk), 58 'layerdetailurl': layer_version.get_detailspage_url(prj.pk),
59 'xhrLayerUrl': reverse('xhr_layer',
60 args=(prj.pk, layer_version.pk)),
58 'vcs_url': layer_version.layer.vcs_url, 61 'vcs_url': layer_version.layer.vcs_url,
59 'vcs_reference': vcs_reference, 62 'vcs_reference': vcs_reference,
60 'detail': detail, 63 'detail': detail,