summaryrefslogtreecommitdiff
path: root/index.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2010-05-04 12:36:58 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2010-05-04 12:36:58 +0200
commit4b4905db5f4123a88dca9f0164a3a35679a9dc13 (patch)
treeea27faa54edb1fa2b00b713bd42229e9a9d51e34 /index.py
parent5e319a2c641e67594000afdef477ac96e6283fa6 (diff)
downloadkosten-4b4905db5f4123a88dca9f0164a3a35679a9dc13.tar.gz
kosten-4b4905db5f4123a88dca9f0164a3a35679a9dc13.tar.bz2
kosten-4b4905db5f4123a88dca9f0164a3a35679a9dc13.zip
More controller stuff
Diffstat (limited to 'index.py')
-rwxr-xr-xindex.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/index.py b/index.py
index d9e2e7d..aaf0f75 100755
--- a/index.py
+++ b/index.py
@@ -8,10 +8,16 @@ import model
# URL Mappings
#
urls = (
- "/r/(.*)", controller.Redirect,
- "/(.*)", controller.Page
+ "/add/?", controller.Add,
+ "/edit/(\d+)", controller.Edit,
+ "/const/?", controller.Const,
+ "/const/add/?", controller.ConstAdd,
+ "/const/edit/(\d+)", controller.ConstEdit,
+ "/cat/?(/\d+)?", controller.Cat,
+ "/(\d\d\d\d)/(\d\d)", controller.Show,
+ "/", controller.Show,
+ "/(.*)", controller.FourOhFour
)
-
#
# ORM
#
@@ -33,7 +39,7 @@ def handle_sql(handler):
# The App
#
app = web.application(urls, globals())
-app.notfound = controller.FourOhFour
+app.notfound = controller.FourOhFour.catch
# add orm processor
app.add_processor(handle_sql)