From patchwork Thu Sep 20 20:57:11 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: 11609 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 60BBF23EFD for ; Thu, 20 Sep 2012 20:57:15 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 1244FA18651 for ; Thu, 20 Sep 2012 20:57:14 +0000 (UTC) Received: by ieje10 with SMTP id e10so3620156iej.11 for ; Thu, 20 Sep 2012 13:57:14 -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=bvvh6cPoEMAXMkAci+qji8Kj582+BJ4zU1crdHwo15w=; b=gtywon92QUV8AWyMJCK8eAtvMTuLtOv8kjZqrM1HR3OTDa7uDlgDFq4FkOC8Qrj0Fo jjhmeDwYH0J38+zrZS4oInk1dvvPQLlUzBNpgODk7P9VmTjBv0LH0lwEQKSeC0sX47LP HLwaiDI2YP1Je48QvWjwkUAat1jo4khPoEw+bVbglimj5AEB2niVAp/Arl9cMz5tzL8K IeSYpxxPkIO3HnyAbpCw1ge4EL6johzrQK91R4Kjs4nult1lX0/hj2qjjmEdYxq6Z0r5 nRCPSMavExvyVxXF+FuRJmBxidJbjjNRiFLl6XrBg7LNRC1ZJD0A9hMSKYV6UHwMJnjC 8anQ== Received: by 10.50.195.134 with SMTP id ie6mr2902141igc.28.1348174634379; Thu, 20 Sep 2012 13:57:14 -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 ex8csp97447igc; Thu, 20 Sep 2012 13:57:13 -0700 (PDT) Received: by 10.180.106.130 with SMTP id gu2mr6662960wib.20.1348174632643; Thu, 20 Sep 2012 13:57:12 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id d6si8897425wec.106.2012.09.20.13.57.11 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 20 Sep 2012 13:57:12 -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 1TEno7-00084r-OW for ; Thu, 20 Sep 2012 20:57:11 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id AD530E2266 for ; Thu, 20 Sep 2012 20:57:11 +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: 395 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-server/trunk] Rev 395: if a table is queryset backed but not ajax enabled, render all the data Message-Id: <20120920205711.12696.25599.launchpad@ackee.canonical.com> Date: Thu, 20 Sep 2012 20:57:11 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="15985"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 2eb242befbf893ec564a4177f147bc57aef7d72f X-Gm-Message-State: ALoCoQlsoVDciunob82xhWBa+XfvaLKk0H/gLh0JqcOcKJuJB3APk4Mi9xj9Ort3aO8TxpMMJ6ua ------------------------------------------------------------ revno: 395 committer: Michael Hudson-Doyle branch nick: trunk timestamp: Fri 2012-09-21 08:56:49 +1200 message: if a table is queryset backed but not ajax enabled, render all the data modified: lava/utils/data_tables/tables.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/tables.py' --- lava/utils/data_tables/tables.py 2012-08-18 00:06:05 +0000 +++ lava/utils/data_tables/tables.py 2012-09-20 20:56:49 +0000 @@ -177,7 +177,10 @@ display_length = self.datatable_opts.get('iDisplayLength', 10) if getattr(self.data, 'list', None) is not None: del self.data.list - self.data.queryset = sorted_queryset[:display_length] + if self.source: + self.data.queryset = sorted_queryset[:display_length] + else: + self.data.queryset = sorted_queryset @property def full_length(self):