[#12] Change URL for org sources list

Use "/organization/harvest_source/{id}", which will turn into
"/organization/harvest/{id}" soon
This commit is contained in:
amercader 2013-03-06 15:38:38 +00:00
parent c2b552b980
commit e9adaa7f91
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ class Harvest(p.SingletonPlugin, DefaultDatasetForm):
map.connect('harvest_job_show', '/' + DATASET_TYPE_NAME + '/{source}/job/{id}', controller=controller, action='show_job') map.connect('harvest_job_show', '/' + DATASET_TYPE_NAME + '/{source}/job/{id}', controller=controller, action='show_job')
org_controller = 'ckanext.harvest.controllers.org:OrgController' org_controller = 'ckanext.harvest.controllers.org:OrgController'
map.connect('harvest_job_org_list', '/organization/' + DATASET_TYPE_NAME + '_list/' + '{id}', controller=org_controller, action='source_list') map.connect('harvest_source_org_list', '/organization/' + DATASET_TYPE_NAME + '/' + '{id}', controller=org_controller, action='source_list')
return map return map