[ckan-dev] RFC: routes - named routes and redirects
    Rufus Pollock 
    rufus.pollock at okfn.org
       
    Tue Sep  4 09:54:10 UTC 2012
    
    
  
On 4 September 2012 09:34, Sean Hammond <sean.hammond at okfn.org> wrote:
>> named routes
>> --------------------
>> sometimes we use named routes eg
>>     m.connect('storage_api', '/api/storage', action='index')
>>
>> Sometimes not eg
>>     m.connect('/feeds/group/{id}.atom', action='group')
>>
>> personally I'd remove all named routes and just use the controller=..,
>> action=.. approach
>
> Definitely, no sense in making up additional names, just makes things
> harder to grep.
Just as a small point of information I note the routes docs state:
"It’s recommended to name all routes that may be used in generation,
but it’s not necessary to name other routes." [1]
Obviously do not *have* to respect this as just a recommendation from them.
Rufus
[1]: http://routes.readthedocs.org/en/latest/setting_up.html
    
    
More information about the ckan-dev
mailing list