From: Seb Bacon Date: Mon, 04 Apr 2011 11:45:59 +0000 Subject: add comment about naming routes X-Git-Url: https://maxious.lambdacomplex.org/git/?p=ckanext-datagovau.git&a=commitdiff&h=893e631efd9b6d670a704d30083b326797c1cbda --- add comment about naming routes --- --- a/ckanext/exampletheme/plugin.py +++ b/ckanext/exampletheme/plugin.py @@ -79,7 +79,12 @@ Note that we have also provided a custom register form template at ``theme/templates/user/register.html``. """ - map.connect('/user/register', + # Note that when we set up the route, we must use the form + # that gives it a name (i.e. in this case, 'register'), so it + # works correctly with the url_for helper:: + # h.url_for('register') + map.connect('register', + '/user/register', controller='ckanext.exampletheme.controller:CustomUserController', action='custom_register') return map