diff options
Diffstat (limited to 'index.py')
-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) |