Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 9F29EE00CB9; Tue, 23 Feb 2016 03:29:33 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [134.134.136.20 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 7816EE00C20 for ; Tue, 23 Feb 2016 03:29:27 -0800 (PST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 23 Feb 2016 03:29:25 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,489,1449561600"; d="scan'208";a="892591492" Received: from irsmsx152.ger.corp.intel.com ([163.33.192.66]) by orsmga001.jf.intel.com with ESMTP; 23 Feb 2016 03:29:24 -0800 Received: from irsmsx110.ger.corp.intel.com ([169.254.15.31]) by IRSMSX152.ger.corp.intel.com ([169.254.6.34]) with mapi id 14.03.0248.002; Tue, 23 Feb 2016 11:29:22 +0000 From: "Barros Pena, Belen" To: "Lerner, David M (Wind River)" , "toaster@yoctoproject.org" , "Wood, Michael G" Thread-Topic: [Toaster] [PATCH 1/1 Version 2] toaster: remove custom images from Image Recipes Thread-Index: AQHRbi1wo/U9sARbJU+4IJqraxGb7g== Date: Tue, 23 Feb 2016 11:29:21 +0000 Message-ID: References: <1456183016-3126-1-git-send-email-dave.lerner@windriver.com> <1456183016-3126-2-git-send-email-dave.lerner@windriver.com> In-Reply-To: <1456183016-3126-2-git-send-email-dave.lerner@windriver.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.6.1.160122 x-originating-ip: [10.252.9.215] MIME-Version: 1.0 Subject: Re: [PATCH 1/1 Version 2] toaster: remove custom images from Image Recipes X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Feb 2016 11:29:33 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-ID: Content-Transfer-Encoding: quoted-printable On 23/02/2016 00:16, "toaster-bounces@yoctoproject.org on behalf of Dave Lerner" wrote: >Fix the view of 'Image Recipes' under 'Configuration' to only show >image recipes that are not customised since custom images have their >own page. > >[YOCTO #9111] From the UI side of things, this is good. Thanks! Bel=E9n > >Signed-off-by: Dave Lerner >--- > bitbake/lib/toaster/toastergui/tables.py | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/bitbake/lib/toaster/toastergui/tables.py >b/bitbake/lib/toaster/toastergui/tables.py >index 86d111d..48a55de 100644 >--- a/bitbake/lib/toaster/toastergui/tables.py >+++ b/bitbake/lib/toaster/toastergui/tables.py >@@ -549,7 +549,10 @@ class ImageRecipesTable(RecipesTable): > def setup_queryset(self, *args, **kwargs): > super(ImageRecipesTable, self).setup_queryset(*args, **kwargs) >=20 >- self.queryset =3D self.queryset.filter(is_image=3DTrue) >+ custom_image_recipes =3D CustomImageRecipe.objects.filter( >+ project=3Dkwargs['pid']) >+ self.queryset =3D self.queryset.filter( >+ Q(is_image=3DTrue) & ~Q(pk__in=3Dcustom_image_recipes)) > self.queryset =3D self.queryset.order_by(self.default_orderby) >=20 >=20 >--=20 >1.9.1 > >--=20 >_______________________________________________ >toaster mailing list >toaster@yoctoproject.org >https://lists.yoctoproject.org/listinfo/toaster