source: TI05-delivery/ows_framework/trunk/ows_server/ows_server/config/routing.py @ 3246

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI05-delivery/ows_framework/trunk/ows_server/ows_server/config/routing.py@3246
Revision 3246, 3.2 KB checked in by domlowe, 14 years ago (diff)

removing old csml route from routing.py

RevLine 
[2476]1"""
2Setup your Routes options here
3"""
4import os
5from routes import Mapper
6
7def make_map(global_conf={}, app_conf={}):
8    root_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
9
10    map = Mapper(directory=os.path.join(root_path, 'controllers'))
11   
12    # This route handles displaying the error page and graphics used in the 404/500
13    # error pages. It should likely stay at the top to ensure that the error page is
14    # displayed properly.
15    map.connect('error/:action/:id', controller='error')
16   
17    # Define your routes. The more specific and detailed routes should be defined first,
18    # so they may take precedent over the more generic routes. For more information, refer
19    # to the routes manual @ http://routes.groovie.org/docs/
[2494]20    #map.connect(':controller/:action/:id')
21    #map.connect('*url', controller='template', action='view')
[2614]22   
[2788]23    #WMS
24    map.connect(':file/wms', controller='csml_wms')  #should become obsolete
25    map.connect('wms/:uri', controller='csml_wms')
26   
27    #WCS
28    #map.connect(':file/status/:jobID', controller='status', action='getStatus')  #not used currently
[2922]29    #wcs controller for all versions: (called wcsx)
30    map.connect('wcs/:uri', controller='csml_wcsx')
[2946]31
[2922]32    #filestore - used for 'store' in wcs
[2740]33    map.connect('filestore/:file', controller='fetch', action='fetchFile')
[2614]34   
35    # following is the shell for the rest of the ndg
[3142]36   
[2614]37    map.connect('login', controller='login')
[2748]38    map.connect('getCredentials', controller='login', action='getCredentials')
[2626]39    map.connect('wayf', controller='login', action='wayf')
[2614]40    map.connect('logout', controller='logout')
[2760]41    map.connect('semantic',controller='discovery', action='semantic')
[2614]42    map.connect('view/:uri', controller = 'retrieve', action='view')
[2646]43    map.connect('askCorrect/:uri', controller='retrieve', action='askCorrect')
44    map.connect('correct/:uri', controller='retrieve', action='correct')
[2614]45    map.connect('retrieve/:uri', controller = 'retrieve')
[2802]46    map.connect('selection',controller='selection',action='index')
47    map.connect('expand/:uri',controller='selection',action='expand')
[2854]48    map.connect('visualise', controller='visualise', action='index')
[2629]49
50    # This route doesn't match the controller's parameters.
51    #map.connect('csml/:uri', controller='csml_api')
52    # Below is the way it worked before with added
[3246]53    #"csml" path component
54    #map.connect('csml/:file.:format', controller='csml_api', action='index',
55              #format='html')
56    #map.connect('csml/:file/:(feature).:format', action='getFeature',
57              #controller='csml_api', format='html')
58    #map.connect('csml/:file/:feature/:action', controller='csml_api')
[2629]59
[2614]60    map.connect('trackback/:uri', controller='trackback')
61    map.connect('discovery',controller='discovery')
[2639]62    map.connect('updatetab/:value',controller='tabs',action='update')
[2647]63    map.connect('addSelection/:uri/:name',controller='tabs',action='addSelection')
64    map.connect('clear/:value',controller='tabs',action='clear')
[2877]65    map.connect('visualise/:dataset/:view',controller='visualise',action='tabChange')
66    map.connect('visualise/:view',controller='visualise',action='featureChange')
[3142]67    #do this last or else you'll get bizarre behaviour
68    map.connect('',controller='discovery',action='index')
[2476]69    return map
Note: See TracBrowser for help on using the repository browser.