]> ToastFreeware Gitweb - philipp/winterrodeln/wradmin.git/commitdiff
Wiki URLs work again.
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Thu, 27 Jul 2017 22:01:16 +0000 (22:01 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Thu, 27 Jul 2017 22:01:16 +0000 (22:01 +0000)
git-svn-id: http://www.winterrodeln.org/svn/wradmin/trunk@2671 7aebc617-e5e2-0310-91dc-80fb5f6d2477

wradmin/genshi.py

index afbab4917be7db3e7e9e1122a020ba30fd5e2b6b..94c6c195ae477ba04c178b9be487cf873d230c66 100644 (file)
@@ -6,8 +6,11 @@ class PylonsHelper:
     def url(self, controller, action=None):
         return ''
 
-    def wiki(self):
-        return ''
+    def wiki(self, page_title=None):
+        """Creates a link to the specified page in the www.winterrodeln.org wiki"""
+        if page_title is None:
+            page_title = 'Hauptseite'
+        return 'http://www.winterrodeln.org/wiki/' + page_title
 
     def forum(self):
         return ''