From patchwork Thu Mar 1 04:41:10 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael-Doyle Hudson X-Patchwork-Id: 7026 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id EEEB723EAE for ; Thu, 1 Mar 2012 04:41:13 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 6712CA182B9 for ; Thu, 1 Mar 2012 04:41:13 +0000 (UTC) Received: by iage36 with SMTP id e36so408218iag.11 for ; Wed, 29 Feb 2012 20:41:12 -0800 (PST) Received: from mr.google.com ([10.50.193.131]) by 10.50.193.131 with SMTP id ho3mr416272igc.55.1330576872886 (num_hops = 1); Wed, 29 Feb 2012 20:41:12 -0800 (PST) Received: by 10.50.193.131 with SMTP id ho3mr340936igc.55.1330576872840; Wed, 29 Feb 2012 20:41:12 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.53.18 with SMTP id k18csp7607ibg; Wed, 29 Feb 2012 20:41:11 -0800 (PST) Received: by 10.180.93.232 with SMTP id cx8mr18806153wib.14.1330576871301; Wed, 29 Feb 2012 20:41:11 -0800 (PST) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id c58si445536wed.106.2012.02.29.20.41.10 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 29 Feb 2012 20:41:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) client-ip=91.189.90.7; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) smtp.mail=bounces@canonical.com Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1S2xpG-0002VI-Mz for ; Thu, 01 Mar 2012 04:41:10 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 9B2ECE14C8 for ; Thu, 1 Mar 2012 04:41:10 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-server X-Launchpad-Branch: ~linaro-validation/lava-server/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 351 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-server/trunk] Rev 351: another "if queryset:" that was triggering accidental queryset evaluation Message-Id: <20120301044110.8814.85352.launchpad@ackee.canonical.com> Date: Thu, 01 Mar 2012 04:41:10 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="14874"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 1997fd9d15d3e5aea80cfc8483755b002c0d31ac X-Gm-Message-State: ALoCoQnrskQF2GYt0wWcAnPol4oyka9oU98cZTJ73vpnmlUP1QXQLbrh6+fS5iGtHKxQoFW00Ym6 ------------------------------------------------------------ revno: 351 committer: Michael Hudson-Doyle branch nick: trunk timestamp: Thu 2012-03-01 17:39:00 +1300 message: another "if queryset:" that was triggering accidental queryset evaluation modified: lava/utils/data_tables/backends.py --- lp:lava-server https://code.launchpad.net/~linaro-validation/lava-server/trunk You are subscribed to branch lp:lava-server. To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-server/trunk/+edit-subscription === modified file 'lava/utils/data_tables/backends.py' --- lava/utils/data_tables/backends.py 2012-02-15 23:32:25 +0000 +++ lava/utils/data_tables/backends.py 2012-03-01 04:39:00 +0000 @@ -109,7 +109,7 @@ # Get the basic response structure response = super(QuerySetBackend, self).process(query) # Get a queryset object - if self.queryset: + if self.queryset is not None: queryset = self.queryset else: queryset = self.queryset_cb(query.request)