Ignore:
Timestamp:
21/06/07 09:51:16 (12 years ago)
Author:
spascoe
Message:

Added more logging. Requests are now logged and OWSExceptions are
logged as well as triggering an XML response. Requests to WMS/GetMap don't
trigger the debugger because it screws up openlayers.

Some changes to routes to make csml_api work again. No doubt this will change
when we have Exist plumbed in.

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

Legend:

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

    r2616 r2629  
    1616from ows_server.config.ndgMiddleware import ndgMiddleware 
    1717 
    18 import logging 
     18# Logging doesn't need configuring if you have paste.translogger in your config file. 
     19#import logging 
    1920 
    2021def make_app(global_conf, full_stack=True, **app_conf): 
     
    5051    g=app.globals 
    5152     
    52  
    5353    # Configure logging 
    54     
    55     logging.basicConfig(format='%(thread)s %(name)s %(levelname)s %(message)s') 
     54    #logging.basicConfig(format='%(thread)s %(name)s %(levelname)s %(message)s') 
    5655     
    5756    # If errror handling and exception catching will be handled by middleware 
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/config/routing.py

    r2626 r2629  
    3939    map.connect('view/:uri', controller = 'retrieve', action='view') 
    4040    map.connect('retrieve/:uri', controller = 'retrieve') 
    41     map.connect('csml/:uri', controller='csml_api') 
     41 
     42    # This route doesn't match the controller's parameters. 
     43    #map.connect('csml/:uri', controller='csml_api') 
     44    # Below is the way it worked before with added 
     45    # "csml" path component 
     46    map.connect('csml/:file.:format', controller='csml_api', action='index', 
     47                format='html') 
     48    map.connect('csml/:file/:(feature).:format', action='getFeature', 
     49                controller='csml_api', format='html') 
     50    map.connect('csml/:file/:feature/:action', controller='csml_api') 
     51 
    4252    map.connect('trackback/:uri', controller='trackback') 
    4353    map.connect('discovery',controller='discovery') 
Note: See TracChangeset for help on using the changeset viewer.