themes: Add proper copyright.
[matthijs/projects/wipi.git] / plugin / theme / exodus.py
index 5a27ef5023541eccb67d398c0dff6d235ae26868..c5406aa4b60f6a805d03f79d9d1351569baec49d 100644 (file)
@@ -1,11 +1,12 @@
 """
-    MoinMoin - modern theme
+    MoinMoin - Exodus website theme.
 
-    @copyright: 2003-2005 Nir Soffer, Thomas Waldmann
+    @copyright: 2009+ Matthijs Kooijman
     @license: GNU GPL, see COPYING for details.
 """
 
 from site import SiteTheme
+from MoinMoin.theme import ThemeBase
 
 class Theme(SiteTheme):
 
@@ -23,6 +24,22 @@ class Theme(SiteTheme):
 
         return '\n'.join(html)
 
+    def startPage(self, d):
+        # For the homepage, don't use SiteTheme's changes
+        if d['page'].page_name == 'Site':
+            return ThemeBase.startPage(self)
+        else:
+            return SiteTheme.startPage(self, d)
+
+    def endPage(self, d):
+        # For the homepage, don't use SiteTheme's changes, but also don't use
+        # ThemeBase, since that adds a #pagebottom.
+        if d['page'].page_name == 'Site':
+            return u'</div><!-- #page -->'
+        else:
+            return SiteTheme.endPage(self, d)
+
+
 def execute(request):
     """
     Generate and return a theme object