All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Wood <michael.g.wood@intel.com>
To: "Barros Pena, Belen" <belen.barros.pena@intel.com>,
	"Lerner, David M (Wind River)" <dave.lerner@windriver.com>,
	"toaster@yoctoproject.org" <toaster@yoctoproject.org>
Subject: Re: [PATCH 1/1 Version 2] toaster: remove custom images from Image Recipes
Date: Tue, 23 Feb 2016 12:37:04 +0000	[thread overview]
Message-ID: <56CC5270.3090205@intel.com> (raw)
In-Reply-To: <D2F20107.74A0C%belen.barros.pena@intel.com>

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" <toaster-bounces@yoctoproject.org on behalf of
> 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 <dave.lerner@windriver.com>
>> ---
>> 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



      reply	other threads:[~2016-02-23 12:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-22 23:16 [review-request version2] remove custom images from Image Recipes page Dave Lerner
2016-02-22 23:16 ` [PATCH 1/1 Version 2] toaster: remove custom images from Image Recipes Dave Lerner
2016-02-23 11:29   ` Barros Pena, Belen
2016-02-23 12:37     ` Michael Wood [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56CC5270.3090205@intel.com \
    --to=michael.g.wood@intel.com \
    --cc=belen.barros.pena@intel.com \
    --cc=dave.lerner@windriver.com \
    --cc=toaster@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.