From: Eevee Date: Mon, 5 Oct 2009 17:39:32 +0000 (-0700) Subject: Added some explicit routes I missed. e.g.: all the art ones. X-Git-Url: http://git.veekun.com/zzz-floof.git/commitdiff_plain/bc1cccee5faefbcfe6e28ce8f49694cca47b85cb?hp=-c Added some explicit routes I missed. e.g.: all the art ones. --- bc1cccee5faefbcfe6e28ce8f49694cca47b85cb diff --git a/floof/config/routing.py b/floof/config/routing.py index 37be4c2..5bd87d9 100644 --- a/floof/config/routing.py +++ b/floof/config/routing.py @@ -22,6 +22,7 @@ def make_map(): map.connect('/', controller='main', action='index') + # User stuff 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') @@ -32,6 +33,14 @@ def make_map(): map.connect('/users', controller='users', action='list') map.connect('/users/{name}', controller='users', action='view') + # Art stuff + map.connect('/art/new', controller='art', action='new') + map.connect('/art/upload', controller='art', action='upload') + map.connect('/art/{id}', controller='art', action='show') + map.connect('/art/{id}/tag', controller='art', action='tag') + + map.connect('/tag/{id}/delete', controller='tag', action='delete') + map.connect('/search', controller='search', action='index') return map diff --git a/floof/templates/art/new.mako b/floof/templates/art/new.mako index 4988917..e2c00fb 100644 --- a/floof/templates/art/new.mako +++ b/floof/templates/art/new.mako @@ -5,5 +5,5 @@ ${h.form(h.url_for(controller='art', action='upload'), multipart=True)} ${h.file('file')} -${h.submit('submit', 'Upload!')} -${h.end_form()} \ No newline at end of file +${h.submit(None, 'Upload!')} +${h.end_form()} diff --git a/floof/templates/art/show.mako b/floof/templates/art/show.mako index d77f364..02f61d4 100644 --- a/floof/templates/art/show.mako +++ b/floof/templates/art/show.mako @@ -8,8 +8,8 @@ ${h.submit('submit', 'Tag!')} ${h.end_form()} % for tag in c.art.tags: -x -${tag} +x +${tag} % endfor