From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id C9699E00815; Thu, 19 Feb 2015 05:53:09 -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,RCVD_IN_DNSWL_LOW, WEIRD_PORT 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 * [209.85.212.171 listed in list.dnswl.org] * 0.0 WEIRD_PORT URI: Uses non-standard port number for HTTP * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com [209.85.212.171]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id F3409E0034A for ; Thu, 19 Feb 2015 05:53:08 -0800 (PST) Received: by mail-wi0-f171.google.com with SMTP id hi2so48172292wib.4 for ; Thu, 19 Feb 2015 05:53:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=citnto7XFdv62blX0C8/NOZwVZl2Ha6RtQ0K+dzQ89I=; b=i6U9JInT0Vl7fOVwOWzrQkGhdv4jk8AHXaoFn8IownjPrVa4K/ahg/9EjFRTK74LeE lLwoFSRLZXys+2/9XXfyJfNeTlSRQVLWfjhAhF44HS42o4W+RaMA/1U7HRyiZV2+AYai V6Dheokp4Ai4wwipXEhgyPlxCrjeQ/4kVrPgSxdzUmpnBJKnkrmUH3o3BmFEQWLnRuQm INbiJeScaBV3TMf8N5qD1DOARbLTUV2IJSwhjWXS8uBoVpjY0tm6mwgnIlJVnPcpwV7d iB5YouxpRooBKh87rMkSNiiyi+9N0N5PhSXeZa3zlFBt1QTj9o7nHuilvStArdJfdgHA JCLw== X-Gm-Message-State: ALoCoQlMZ/VJhtLr52tWw/E9B+S8xau15ZlXmWHibmcNlpKto3AxVfEbIm2BqMjxE9LFyc90IMbj X-Received: by 10.194.61.51 with SMTP id m19mr9314997wjr.39.1424353987896; Thu, 19 Feb 2015 05:53:07 -0800 (PST) Received: from [192.168.2.187] ([83.217.123.106]) by mx.google.com with ESMTPSA id fd10sm34325697wib.4.2015.02.19.05.53.07 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Feb 2015 05:53:07 -0800 (PST) Message-ID: <54E5EAC3.40101@intel.com> Date: Thu, 19 Feb 2015 13:53:07 +0000 From: Michael Wood User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: "Barros Pena, Belen" , "toaster@yoctoproject.org" References: <54E5C686.9090908@intel.com> In-Reply-To: Subject: Re: [review-request] michaelw/toaster/fixes-7195-7241-7199 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: Thu, 19 Feb 2015 13:53:09 -0000 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Whoops; that teaches me for testing on a layer which doesn't have any machines! - machines_query = query.filter( + machines_query = machines_query.filter( Branch is now updated. michaelw/toaster/fixes-7195-7241-7199 Thanks, Michael On 19/02/15 13:42, Barros Pena, Belen wrote: > On 19/02/2015 11:18, "Michael Wood" wrote: > >> commit 57e68b0b342c48b51f2383588351658f039f18c4 >> Author: Michael Wood >> Date: Wed Feb 18 16:02:24 2015 +0000 >> >> bitbake: toaster: layerdetails summary/descriptions to be searchable >> >> Allow the descriptions of the machine summary and layer description >> to >> be searchable in their respective tables. >> >> [YOCTO #7199] >> >> Signed-off-by: Michael Wood > All looks good, except a problem on this one. The Description is now > searchable in the Targets tab, but when I try to search in the Machines > tab, I get this error > > Environment: > > > Request Method: GET > Request URL: > http://127.0.0.1:8000/toastergui/layer/20/?machines_search=moto > > Django Version: 1.6 > Python Version: 2.7.6 > Installed Applications: > ('django.contrib.auth', > 'django.contrib.contenttypes', > 'django.contrib.messages', > 'django.contrib.sessions', > 'django.contrib.admin', > 'django.contrib.staticfiles', > 'django.contrib.humanize', > 'orm', > 'toastermain', > 'south', > 'bldviewer', > 'toastergui', > 'bldcontrol') > Installed Middleware: > ('django.middleware.common.CommonMiddleware', > 'django.contrib.sessions.middleware.SessionMiddleware', > 'django.middleware.csrf.CsrfViewMiddleware', > 'django.contrib.auth.middleware.AuthenticationMiddleware', > 'django.contrib.messages.middleware.MessageMiddleware') > > > Traceback: > File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" > in get_response > 114. response = wrapped_callback(request, > *callback_args, **callback_kwargs) > File "/home/yocto/poky-contrib/bitbake/lib/toaster/toastergui/views.py" > in layerdetails > 2633. machines_query = query.filter( > > Exception Type: NameError at /toastergui/layer/20/ > Exception Value: global name 'query' is not defined > >