summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/tables.py
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2015-12-10 14:52:22 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-10 13:29:19 +0000
commit6d9f342e12150db8480730bcdf397a7c7b7ac1f2 (patch)
treed100a207bbff0cefde4eb66fb26d230f328be7ab /bitbake/lib/toaster/toastergui/tables.py
parent76c000801415597975724978d42763f4ac573c50 (diff)
downloadpoky-6d9f342e12150db8480730bcdf397a7c7b7ac1f2.tar.gz
bitbake: toaster: tables Check layer presence in project for customise_btn
Make sure we send the current list of layers to the customise button to be able to know whether it should be set as an add layer button or a customise button on the New custom image page. (Bitbake rev: 5ddb35c98b609d85f97d482b54cabe3a2812afe6) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: brian avery <avery.brian@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/tables.py')
-rw-r--r--bitbake/lib/toaster/toastergui/tables.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/tables.py b/bitbake/lib/toaster/toastergui/tables.py
index d80b90254a..ba2726d070 100644
--- a/bitbake/lib/toaster/toastergui/tables.py
+++ b/bitbake/lib/toaster/toastergui/tables.py
@@ -583,6 +583,9 @@ class NewCustomImagesTable(ImageRecipesTable):
583 583
584 def setup_queryset(self, *args, **kwargs): 584 def setup_queryset(self, *args, **kwargs):
585 super(ImageRecipesTable, self).setup_queryset(*args, **kwargs) 585 super(ImageRecipesTable, self).setup_queryset(*args, **kwargs)
586 prj = Project.objects.get(pk = kwargs['pid'])
587 self.static_context_extra['current_layers'] = \
588 prj.get_project_layer_versions(pk=True)
586 589
587 self.queryset = self.queryset.filter(is_image=True) 590 self.queryset = self.queryset.filter(is_image=True)
588 591