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')
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
${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()}
${h.end_form()}
% for tag in c.art.tags:
-<a href="${h.url_for (controller='tag', action='delete', id=tag.id)}">x</a>
-<a href="${h.url_for (controller='search', action='results')}?query=${tag}">${tag}</a>
+<a href="${url(controller='tag', action='delete', id=tag.id)}">x</a>
+<a href="${url(controller='search', action='index', query=tag)}">${tag}</a>
% endfor