mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 00:49:33 +02:00
bitbake: toastergui: Move layerdetails view definition to the views.py
The layerdetails view definition was moved to tables though it isn't a table. We have a mechanism for the JSON response for this page so use this instead of a custom class. (Bitbake rev: b5100bfd4cb32a9b59b0554c6dbc3a4295da7d8e) 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>
This commit is contained in:
committed by
Richard Purdie
parent
da4c66385d
commit
af72d0fbb2
@@ -2517,6 +2517,21 @@ if True:
|
||||
}
|
||||
return render(request, template, context)
|
||||
|
||||
@_template_renderer('layerdetails.html')
|
||||
def layerdetails(request, pid, layerid):
|
||||
project = Project.objects.get(pk=pid)
|
||||
layer_version = Layer_Version.objects.get(pk=layerid)
|
||||
|
||||
context = { 'project' : project,
|
||||
'layerversion' : layer_version,
|
||||
'layerdeps' : { "list": [
|
||||
[{"id": y.id, "name": y.layer.name} for y in x.depends_on.get_equivalents_wpriority(project)][0] for x in layer_version.dependencies.all()]},
|
||||
'projectlayers': map(lambda prjlayer: prjlayer.layercommit.id, ProjectLayer.objects.filter(project=project))
|
||||
}
|
||||
|
||||
return context
|
||||
|
||||
|
||||
def get_project_configvars_context():
|
||||
# Vars managed outside of this view
|
||||
vars_managed = {
|
||||
|
||||
Reference in New Issue
Block a user