diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2010-05-04 12:36:58 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2010-05-04 12:36:58 +0200 |
commit | 4b4905db5f4123a88dca9f0164a3a35679a9dc13 (patch) | |
tree | ea27faa54edb1fa2b00b713bd42229e9a9d51e34 /index.py | |
parent | 5e319a2c641e67594000afdef477ac96e6283fa6 (diff) | |
download | kosten-4b4905db5f4123a88dca9f0164a3a35679a9dc13.tar.gz kosten-4b4905db5f4123a88dca9f0164a3a35679a9dc13.tar.bz2 kosten-4b4905db5f4123a88dca9f0164a3a35679a9dc13.zip |
More controller stuff
Diffstat (limited to '')
-rwxr-xr-x | index.py | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -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) |