From patchwork Mon Oct 1 19:55:15 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Michael-Doyle Hudson X-Patchwork-Id: 11894 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 CF6CC23E54 for ; Mon, 1 Oct 2012 19:55:20 +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 EF1F4A186D8 for ; Mon, 1 Oct 2012 19:55:19 +0000 (UTC) Received: by ieje10 with SMTP id e10so12595144iej.11 for ; Mon, 01 Oct 2012 12:55:19 -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=nW2GN83EpUUXS6m2AvCQFVYq9HWjw1kBAtuLIwBy+NE=; b=eyiN3Pjdoyvtvg8vPpGKmmrgqQZnLp4GRoGzVsEu9xSSihY3twkrhefu8P26o+U4R8 i117k35Ew5+jchdMTEtMSnkbiWZOcqryEvgBISRPmJbotqPc9l2Cyz4vxY7tSWJVUUIs KcJXs7oNBfWfCPkx1vG2feHdnbQ/ypdWs9b4vlPXfbXndAaw9urFXiBP5Hrr/E+UKwGG atEyDH07Zk5JAv3Mi5lubN/CGYOaHiQAfiSn3joeeXUwIS0NNyQ64pFfFcPkIvRl1Voi vNFsXp+anX9fdJboRcaG3aCcdrQDEctMmSvJJOjJzOa8ANjvz7sqTNwf4qSQqdiXk3Lv qFZQ== Received: by 10.50.155.136 with SMTP id vw8mr6201096igb.28.1349121319290; Mon, 01 Oct 2012 12:55:19 -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 ex8csp45608igc; Mon, 1 Oct 2012 12:55:17 -0700 (PDT) Received: by 10.216.194.148 with SMTP id m20mr8833693wen.51.1349121316891; Mon, 01 Oct 2012 12:55:16 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id d9si21770057wec.29.2012.10.01.12.55.15 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 01 Oct 2012 12:55: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 1TIm5D-0006Je-JR for ; Mon, 01 Oct 2012 19:55:15 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 837BBE1D1A for ; Mon, 1 Oct 2012 19:55:15 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-dashboard X-Launchpad-Branch: ~linaro-validation/lava-dashboard/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-dashboard/trunk] Rev 351: split up views.py a bunch Message-Id: <20121001195515.17411.75631.launchpad@ackee.canonical.com> Date: Mon, 01 Oct 2012 19:55: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="16061"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 03b85c82bdf6d9f313ae788420f694398bdbd966 X-Gm-Message-State: ALoCoQmvuavBeF8LiQ1un7yvFpw0qvVdOyoxCzqW5bsCWCUjIr3X92A5VgGJ/XTEsDOJr0FdIbxT Merge authors: Michael Hudson-Doyle (mwhudson) Related merge proposals: https://code.launchpad.net/~mwhudson/lava-dashboard/split-up-views.py/+merge/127200 proposed by: Michael Hudson-Doyle (mwhudson) review: Approve - Zygmunt Krynicki (zkrynicki) ------------------------------------------------------------ revno: 351 [merge] committer: Michael Hudson-Doyle branch nick: trunk timestamp: Tue 2012-10-02 08:54:26 +1300 message: split up views.py a bunch added: dashboard_app/views/ dashboard_app/views/filters/ dashboard_app/views/filters/__init__.py dashboard_app/views/filters/forms.py dashboard_app/views/filters/tables.py dashboard_app/views/filters/views.py dashboard_app/views/images.py renamed: dashboard_app/views.py => dashboard_app/views/__init__.py modified: dashboard_app/extension.py dashboard_app/models.py dashboard_app/templates/dashboard_app/filter_detail.html dashboard_app/templates/dashboard_app/filters_list.html dashboard_app/templates/dashboard_app/image-report.html dashboard_app/urls.py dashboard_app/views/__init__.py --- lp:lava-dashboard https://code.launchpad.net/~linaro-validation/lava-dashboard/trunk You are subscribed to branch lp:lava-dashboard. To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-dashboard/trunk/+edit-subscription === modified file 'dashboard_app/extension.py' --- dashboard_app/extension.py 2012-09-03 00:09:09 +0000 +++ dashboard_app/extension.py 2012-10-01 08:08:51 +0000 @@ -45,8 +45,8 @@ Menu("Tests", reverse("dashboard_app.views.test_list")), Menu("Data Views", reverse("dashboard_app.views.data_view_list")), Menu("Reports", reverse("dashboard_app.views.report_list")), - Menu("Image Reports", reverse("dashboard_app.views.image_report_list")), - Menu("[BETA] Filters", reverse("dashboard_app.views.filters_list")), + Menu("Image Reports", reverse("dashboard_app.views.images.image_report_list")), + Menu("[BETA] Filters", reverse("dashboard_app.views.filters.views.filters_list")), ] return menu === modified file 'dashboard_app/models.py' --- dashboard_app/models.py 2012-09-25 23:31:26 +0000 +++ dashboard_app/models.py 2012-10-01 08:08:51 +0000 @@ -1444,7 +1444,7 @@ @models.permalink def get_absolute_url(self): - return ("dashboard_app.views.image_report_detail", (), dict(name=self.name)) + return ("dashboard_app.views.images.image_report_detail", (), dict(name=self.name)) class ImageSet(models.Model): @@ -1878,7 +1878,7 @@ @models.permalink def get_absolute_url(self): return ( - "dashboard_app.views.filter_detail", + "dashboard_app.views.filters.views.filter_detail", [self.owner.username, self.name]) === modified file 'dashboard_app/templates/dashboard_app/filter_detail.html' --- dashboard_app/templates/dashboard_app/filter_detail.html 2012-09-03 00:09:09 +0000 +++ dashboard_app/templates/dashboard_app/filter_detail.html 2012-10-01 03:34:07 +0000 @@ -17,11 +17,11 @@ {% if subscription %}

- Manage your subscription to this filter. + Manage your subscription to this filter.

{% else %}

- Subscribe to this filter. + Subscribe to this filter.

{% endif %} === modified file 'dashboard_app/templates/dashboard_app/filters_list.html' --- dashboard_app/templates/dashboard_app/filters_list.html 2012-09-03 00:09:09 +0000 +++ dashboard_app/templates/dashboard_app/filters_list.html 2012-10-01 03:34:07 +0000 @@ -16,7 +16,7 @@ {% render_table user_filters_table %}

- Add new filter… + Add new filter…

{% else %} === modified file 'dashboard_app/templates/dashboard_app/image-report.html' --- dashboard_app/templates/dashboard_app/image-report.html 2012-09-25 23:31:26 +0000 +++ dashboard_app/templates/dashboard_app/image-report.html 2012-10-01 08:08:51 +0000 @@ -83,7 +83,7 @@