From patchwork Tue Aug 21 01:42:15 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: 10821 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 D703723F46 for ; Tue, 21 Aug 2012 01:42:18 +0000 (UTC) Received: from mail-gh0-f180.google.com (mail-gh0-f180.google.com [209.85.160.180]) by fiordland.canonical.com (Postfix) with ESMTP id 5D9A2A188FC for ; Tue, 21 Aug 2012 01:42:11 +0000 (UTC) Received: by ghbg10 with SMTP id g10so5843429ghb.11 for ; Mon, 20 Aug 2012 18:42:18 -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=B2YNdJWKeUsc0gpx8PE8LxMn1KCGu58Y0/LfCr7jNbw=; b=b9o8BNf/uVKDBoFEUUGuZNDlFRPmFzC/m3Bl1Et/SvVg6nfqCBU9JVsQQPkvUgZRQ2 fG9yTTEKz1fgs1/N2h3RymPb3OCcQfWKTQS5rFQShkUZcbjTYs4GqKaI+f14EyiPRY8v hEMiwKZ5b0zBOaVnx375loynSrhMcXxcgaYQ35ps6h4TdAUL0fy3+pOM1EQGRf7ATN8h B5EOkxGRtPSyuPNL6Z/QfA2IXBo0gRgNEhvu0sjidFfHuTYjT2WRMaX+jQrQ2roQ60bc dYdLPqLJm5b5cf6IqZSSRXO7V4I+MckDLCo3aQf61H1CbaYmbwH8uldfGK5hkdlAOVT3 44/Q== Received: by 10.50.187.138 with SMTP id fs10mr11644506igc.43.1345513337753; Mon, 20 Aug 2012 18:42:17 -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 ex8csp116265igc; Mon, 20 Aug 2012 18:42:16 -0700 (PDT) Received: by 10.216.30.83 with SMTP id j61mr8320773wea.168.1345513336333; Mon, 20 Aug 2012 18:42:16 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id i14si128396wiw.43.2012.08.20.18.42.15 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 20 Aug 2012 18:42:16 -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 1T3dTz-0002Vg-Cy for ; Tue, 21 Aug 2012 01:42:15 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 42E02E04D5 for ; Tue, 21 Aug 2012 01:42:15 +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: 389 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-server/trunk] Rev 389: fix check for whether the requested column sort is valid Message-Id: <20120821014215.22278.73138.launchpad@ackee.canonical.com> Date: Tue, 21 Aug 2012 01:42:15 -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: a98914915ff63c79be8ea86eed665892b1bd7a44 X-Gm-Message-State: ALoCoQkn0CfpFAuy0KTmnrTI4L8Fe3vEZLIDHrmIOeqOB3bxHt5VtlYZ89qfCh14NRyk+Iv16dXC ------------------------------------------------------------ revno: 389 committer: Michael Hudson-Doyle branch nick: trunk timestamp: Tue 2012-08-21 13:41:49 +1200 message: fix check for whether the requested column sort is valid modified: lava/utils/data_tables/query.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/query.py' --- lava/utils/data_tables/query.py 2012-01-17 01:24:32 +0000 +++ lava/utils/data_tables/query.py 2012-08-21 01:41:49 +0000 @@ -48,7 +48,7 @@ self.iSortingCols = int(request.GET.get('iSortingCols', 0)) for i in range(self.iSortingCols): column_index = int(request.GET.get('iSortCol_{0}'.format(i), 0)) - sortable = request.GET.get('bSortable_{0}'.format(i), 'false') == 'true' + sortable = request.GET.get('bSortable_{0}'.format(column_index), 'false') == 'true' if sortable: sorting_direction = request.GET.get('sSortDir_{0}'.format(i), 'asc') self.sorting_columns.append((column_index, sorting_direction))