Augh! Removed trailing whitespace.
[zzz-floof.git] / floof / config / routing.py
index 3ff8e54..f78246a 100644 (file)
@@ -13,12 +13,18 @@ def make_map():
                  always_scan=config['debug'])
     map.minimization = False
 
+    require_POST = dict(conditions={'method': ['POST']})
+
     # The ErrorController route (handles 404/500 error pages); it should
     # likely stay at the top, ensuring it can always be resolved
     map.connect('/error/{action}', controller='error')
     map.connect('/error/{action}/{id}', controller='error')
 
-    # CUSTOM ROUTES HERE
+    map.connect('/', controller='main', action='index')
+
+    map.connect('/account/login', controller='account', action='login')
+    map.connect('/account/login_begin', controller='account', action='login_begin', **require_POST)
+    map.connect('/account/login_finish', controller='account', action='login_finish')
 
     map.connect('/{controller}/{action}')
     map.connect('/{controller}/{action}/{id}')