[#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:
parent
c2b552b980
commit
e9adaa7f91
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue