Changeset 2614


Ignore:
Timestamp:
19/06/07 14:32:35 (12 years ago)
Author:
lawrence
Message:

Adding infrastructure to the ows_server code to support the
rest of the ndg code stack

Location:
TI05-delivery/ows_framework/trunk/ows_server/ows_server
Files:
5 added
2 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/config/routing.py

    r2589 r2614  
    2020    #map.connect(':controller/:action/:id') 
    2121    #map.connect('*url', controller='template', action='view') 
     22     
     23    # These should conform to http://proj.badc.rl.ac.uk/ndg/wiki/PasteStack 
     24    # ... but don't ... yet ... 
    2225 
     26    # the NDG OGC services 
     27    # change these when security layer is present and not before 
     28    #to 
     29    # map.connect('wms/:file',controller='csml_wms') 
     30    # map.connect('wcs/:file',controller='csml_wcs') 
     31     
    2332    map.connect(':file/wms', controller='csml_wms') 
    2433    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  
     34     
     35    # following is the shell for the rest of the ndg  
     36    map.connect('login', controller='login') 
     37    map.connect('logout', controller='logout') 
     38    map.connect('view/:uri', controller = 'retrieve', action='view') 
     39    map.connect('retrieve/:uri', controller = 'retrieve') 
     40    map.connect('csml/:uri', controller='csml_api') 
     41    map.connect('trackback/:uri', controller='trackback') 
     42    map.connect('discovery',controller='discovery') 
     43   
    3044    return map 
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/lib/base.py

    r2599 r2614  
    1212from ows_common.get_capabilities import ServiceMetadata 
    1313import ows_common.xml 
    14 from elementtree import ElementTree as ET 
     14 
     15try: 
     16    from xml.etree import ElementTree as ET 
     17except ImportError: 
     18    from elementtree import ElementTree as ET 
    1519 
    1620import logging 
Note: See TracChangeset for help on using the changeset viewer.