Called Layer_Version.get_alldeps API through get_alldeps filter in tables.py:LayerTable template to show amount and list of dependencies for the layer.
[YOCTO 8004] Signed-off-by: Ed Bartosh <[email protected]> --- bitbake/lib/toaster/toastergui/tables.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/tables.py b/bitbake/lib/toaster/toastergui/tables.py index 3354072..6809056 100644 --- a/bitbake/lib/toaster/toastergui/tables.py +++ b/bitbake/lib/toaster/toastergui/tables.py @@ -166,15 +166,16 @@ class LayersTable(ToasterTable): static_data_template=revision_template) deps_template = ''' - {% with ods=data.dependencies.all%} - {% if ods.count %} + {% load projecttags %} + {% with deps=data|get_alldeps:extra.pid %} + {% if deps|length %} <a class="btn" title="<a href='{% url "layerdetails" extra.pid data.id %}'>{{data.layer.name}}</a> dependencies" data-content="<ul class='unstyled'> - {% for i in ods%} - <li><a href='{% url "layerdetails" extra.pid i.depends_on.pk %}'>{{i.depends_on.layer.name}}</a></li> + {% for dep in deps %} + <li><a href='{% url "layerdetails" extra.pid dep.pk %}'>{{dep.layer.name}}</a></li> {% endfor %} </ul>"> - {{ods.count}} + {{deps|length}} </a> {% endif %} {% endwith %} -- 2.1.4 -- _______________________________________________ toaster mailing list [email protected] https://lists.yoctoproject.org/listinfo/toaster
