From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id CF695E00CB9; Tue, 23 Feb 2016 04:37:07 -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=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [74.125.82.52 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id DEDACE00C25 for ; Tue, 23 Feb 2016 04:37:06 -0800 (PST) Received: by mail-wm0-f52.google.com with SMTP id a4so206939784wme.1 for ; Tue, 23 Feb 2016 04:37:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=vdTaL0oJKotJZDFYFKhLTSg476Tf2SWBh6Cd5bbvqW0=; b=qYuicUUalXoZ4qEQe8F+8JJmwo/RPyzZwxIwVYfS6SEfiKl2NC+BjzgeOhjMLrJe2N E7fFICJFQgkcgi1YODDYjOH+xBNHANGKYqs6ucXJ6kEJNJMinAfdgAOtJYKf8aNuk5eP QoUfObhXxEMW3A1IitWPIot3plu4D4VatWKsqPdrLmjOIIwIw8ZyMz0CJ6QJhKh8AbB5 TuchEi/MSM+IgN7VyHea2cP0rRGYb9aL5NIiWRyadxU4/TmvaqzAlngaEIF97FzwOhyQ KDPJCnY2I3RwpApUxCW+lLAeIgElgrf/7Xse0xfK7vUJH/TRXEBJ3a3Bosb2VG+qoC8k 2/KA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=vdTaL0oJKotJZDFYFKhLTSg476Tf2SWBh6Cd5bbvqW0=; b=RCik+jH9TontiucSl3p1uiW3rFrG/yHoaVkE8MVmD2bgm5X8802mBJZHYr2/nvdOHo oifzGvrB6q+7iCSuktfif4khgwsgVXZQW/jvdxXFCIGBNAMHvQHCFb0gOnm9VQD1UanP mCDiuiMgwo2V/GM3bUh6P5BU8xYln7ErcMalRiDp3RjcRXyFG2h/MFzkxEl4Fr7V07kv gOHxuLLOeSMjM8zzHgRoh59bF0GVFRv5AdSdiRLaJor5sVH2piNvVyCO1mlNuiVUq8Jj hxSs3+jcsp3/2YKzQeXoqc4zR7K8+dIyvZbj/1KVtYhOpICKWqKn5JcdRBNxA0gAmiuC 1+wA== X-Gm-Message-State: AG10YORR+DYkpPcGM5piheLDXZDIFYXW9MNdOERrZHNPRqt5+XUbJToJsfo0wsuho15wqjXy X-Received: by 10.28.172.132 with SMTP id v126mr18746987wme.28.1456231025758; Tue, 23 Feb 2016 04:37:05 -0800 (PST) Received: from [192.168.0.44] (host109-149-84-27.range109-149.btcentralplus.com. [109.149.84.27]) by smtp.googlemail.com with ESMTPSA id u9sm26099880wmd.4.2016.02.23.04.37.04 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 23 Feb 2016 04:37:05 -0800 (PST) To: "Barros Pena, Belen" , "Lerner, David M (Wind River)" , "toaster@yoctoproject.org" References: <1456183016-3126-1-git-send-email-dave.lerner@windriver.com> <1456183016-3126-2-git-send-email-dave.lerner@windriver.com> From: Michael Wood Message-ID: <56CC5270.3090205@intel.com> Date: Tue, 23 Feb 2016 12:37:04 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: 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 12:37:07 -0000 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Thanks patch sent to bitbake-devel and pushed to toaster-next On 23/02/16 11:29, Barros Pena, Belen wrote: > > On 23/02/2016 00:16, "toaster-bounces@yoctoproject.org on behalf of Dave > Lerner" dave.lerner@windriver.com> 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én > >> 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) >> >> - self.queryset = self.queryset.filter(is_image=True) >> + custom_image_recipes = CustomImageRecipe.objects.filter( >> + project=kwargs['pid']) >> + self.queryset = self.queryset.filter( >> + Q(is_image=True) & ~Q(pk__in=custom_image_recipes)) >> self.queryset = self.queryset.order_by(self.default_orderby) >> >> >> -- >> 1.9.1 >> >> -- >> _______________________________________________ >> toaster mailing list >> toaster@yoctoproject.org >> https://lists.yoctoproject.org/listinfo/toaster