From patchwork Fri Aug 19 04:21:14 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zygmunt Krynicki X-Patchwork-Id: 3534 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 81DC123F46 for ; Fri, 19 Aug 2011 04:21:19 +0000 (UTC) Received: from mail-gy0-f180.google.com (mail-gy0-f180.google.com [209.85.160.180]) by fiordland.canonical.com (Postfix) with ESMTP id 461C0A183CF for ; Fri, 19 Aug 2011 04:21:19 +0000 (UTC) Received: by gyc15 with SMTP id 15so2819851gyc.11 for ; Thu, 18 Aug 2011 21:21:18 -0700 (PDT) Received: by 10.150.47.2 with SMTP id u2mr1655917ybu.162.1313727678739; Thu, 18 Aug 2011 21:21:18 -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.150.157.17 with SMTP id f17cs81947ybe; Thu, 18 Aug 2011 21:21:18 -0700 (PDT) Received: by 10.227.165.204 with SMTP id j12mr2650531wby.19.1313727675414; Thu, 18 Aug 2011 21:21:15 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com [91.189.90.7]) by mx.google.com with ESMTPS id fe9si5747420wbb.25.2011.08.18.21.21.14 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 18 Aug 2011 21:21:15 -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 1QuGa2-0000MK-9j for ; Fri, 19 Aug 2011 04:21:14 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 41F35E0149 for ; Fri, 19 Aug 2011 04:21:14 +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: 224 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-server/trunk] Rev 224: Add front_page_template to extension API Message-Id: <20110819042114.16581.49020.launchpad@ackee.canonical.com> Date: Fri, 19 Aug 2011 04:21:14 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="13697"; Instance="initZopeless config overlay" X-Launchpad-Hash: e727da5a12de7001d58aec0bf6b4b1017ff0e087 ------------------------------------------------------------ revno: 224 committer: Zygmunt Krynicki branch nick: pristine timestamp: Thu 2011-08-18 16:59:36 +0200 message: Add front_page_template to extension API modified: lava_server/extension.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_server/extension.py' --- lava_server/extension.py 2011-07-19 21:36:43 +0000 +++ lava_server/extension.py 2011-08-18 14:59:36 +0000 @@ -74,6 +74,12 @@ Version of this extension. """ + @abstractproperty + def front_page_template(self): + """ + Name of the front page template to {% include %}, may be None + """ + @abstractmethod def get_main_url(self): """ @@ -104,6 +110,10 @@ """ @property + def front_page_template(self): + return None + + @property def api_class(self): """ Subclass of linaro_django_xmlrpc.models.ExposedAPI for this extension.