From patchwork Sat Aug 18 07:07:13 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: 10793 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 BCC1823E56 for ; Sat, 18 Aug 2012 07:07:16 +0000 (UTC) Received: from mail-ob0-f180.google.com (mail-ob0-f180.google.com [209.85.214.180]) by fiordland.canonical.com (Postfix) with ESMTP id 7D094A1900C for ; Sat, 18 Aug 2012 07:07:16 +0000 (UTC) Received: by obceq6 with SMTP id eq6so6366951obc.11 for ; Sat, 18 Aug 2012 00:07:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf :content-type:mime-version:x-launchpad-project:x-launchpad-branch :x-launchpad-message-rationale:x-launchpad-branch-revision-number :x-launchpad-notification-type:to:from:subject:message-id:date :reply-to:sender:errors-to:precedence:x-generated-by :x-launchpad-hash:x-gm-message-state; bh=ZezLolS9LAOh00rb2JzzLdzmeM4uB18fXFz4VrUPrgM=; b=H3aHNqewnsGwTEHIp+xQQSL+ZY1SxvOshI10LKBR3IfQN4gE3JpfDB3AuDCQwfyigs l/spu6wwIs/zvH2U/jxbUyHw61/aGv6SQVvIrhinsetMnWRcIe9+FjPeEda2ZYkn5iTl VvrD4jtKvWVcufb9Co+qH8zcSNMAVn9mCxrA924rcm71rw6Fn37vHKtl0cY0PWz0la95 1c1prT9tN/Ab3hfOyeW4dd6+2pKSLcGJhOoIZBmaEtjfMKoe0L90SBaIN+l0iYX9NdLr 9MPHfY05YpZkij1RsoGcxnXnK4iK8bx9DfX+eFaB/5LOWBzaOoBaADSxNC+Mx+ZaO0Lr R+ug== Received: by 10.50.45.162 with SMTP id o2mr4229371igm.0.1345273635708; Sat, 18 Aug 2012 00:07:15 -0700 (PDT) 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.50.184.232 with SMTP id ex8csp143940igc; Sat, 18 Aug 2012 00:07:14 -0700 (PDT) Received: by 10.180.100.37 with SMTP id ev5mr11765549wib.5.1345273634249; Sat, 18 Aug 2012 00:07:14 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id hd6si18169814wib.20.2012.08.18.00.07.13 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 18 Aug 2012 00:07:14 -0700 (PDT) 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 1T2d7p-0000te-Jp for ; Sat, 18 Aug 2012 07:07:13 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 8BC8CE03EE for ; Sat, 18 Aug 2012 07:07:13 +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: 388 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-server/trunk] Rev 388: revert misguided "fix" Message-Id: <20120818070713.29152.36678.launchpad@ackee.canonical.com> Date: Sat, 18 Aug 2012 07:07:13 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="15810"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 65a99b7775b0579ecf20aaa2aedc132663a2222a X-Gm-Message-State: ALoCoQl0z0bAp7bifA4yb9fusioseRgnnDZGKiPDiprA0jh18MLowvFDVPjy0ud0G2wQoPqQPm5J ------------------------------------------------------------ revno: 388 committer: Michael Hudson-Doyle branch nick: trunk timestamp: Sat 2012-08-18 12:06:49 +1200 message: revert misguided "fix" 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-08-18 00:06:05 +0000 +++ lava/utils/data_tables/backends.py 2012-08-18 00:06:49 +0000 @@ -234,13 +234,11 @@ return queryset order_by = [] for column_index, order in sorting_columns: - name, col = self.table.base_columns.items()[column_index] - accessor = col.accessor or name + col = self.table.columns[column_index] order_by.append( "{asc_desc}{column}".format( asc_desc="-" if order == 'desc' else '', - column=accessor.replace('.', '__'))) - print order_by + column=col.accessor.replace('.', '__'))) return queryset.order_by(*order_by) def process(self, query):