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

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

Beginnings of WCS controller added to pylons framework, basic getCapabilites working, csml_wcs.py, wcs_capabilities.kid, wcs.py and development_dom.ini added

Line 
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/
20    #map.connect(':controller/:action/:id')
21    #map.connect('*url', controller='template', action='view')
22
23    map.connect(':file/wms', controller='csml_wms')
24    map.connect(':file/wcs', controller='csml_wcs')
25    map.connect(':file.:format', controller='csml_api', action='index', format='html')
26    map.connect(':file/:(feature).:format', action='getFeature',
27                controller='csml_api', format='html')
28    map.connect(':file/:feature/:action', controller='csml_api')
29
30    return map
Note: See TracBrowser for help on using the repository browser.