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

wradmin/__init__.py
wradmin/genshi.py

index 0c046f4c0d39b9aa1515a185ff24b35af02c3729..f61da7b0fff53d62c8de3734bf824537a73ccfbf 100644 (file)
@@ -28,15 +28,25 @@ def close_db(error):
 
 
 @app.route("/")
-def hello():
+def index():
     return render_genshi_template('index.html')
 
 
-@app.route("/rodelbahn/")
+@app.route("/rodelbahn/list")
 def rodelbahn_list():
     pass
 
 
-@app.route("/bericht/")
+@app.route("/bericht/list")
 def bericht_list():
     pass
+
+
+@app.route("/gasthaus/list")
+def gasthaus_list():
+    pass
+
+
+@app.route("/coordtool/index")
+def coordtool_index():
+    pass
index 63a510a2930d4759dc10d430ca366c1365c76e03..5267e7b17f0db05c19d048f289b146c0c74c6f79 100644 (file)
@@ -8,7 +8,10 @@ class PylonsHelper:
         if filename is not None and filename.startswith('/'):
             filename = filename[1:]
             return url_for('static', filename=filename)
-        return ''
+        if controller == 'rodelbahn':
+            if action == 'index':
+                return url_for('index')
+        return url_for('{}_{}'.format(controller, action))
 
     def wiki(self, page_title=None):
         """Creates a link to the specified page in the www.winterrodeln.org wiki"""