diff mbox

[Branch,~linaro-validation/lava-server/trunk] Rev 224: Add front_page_template to extension API

Message ID 20110819042114.16581.49020.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Zygmunt Krynicki Aug. 19, 2011, 4:21 a.m. UTC
------------------------------------------------------------
revno: 224
committer: Zygmunt Krynicki <zygmunt.krynicki@linaro.org>
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
diff mbox

Patch

=== 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.