Changeset 3364


Ignore:
Timestamp:
11/02/08 10:57:48 (12 years ago)
Author:
spascoe
Message:

Moving exception template to ows_common

Location:
TI05-delivery/ows_framework/branches/ows_framework-refactor/ows_common/ows_common/pylons
Files:
3 added
1 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/branches/ows_framework-refactor/ows_common/ows_common/pylons/ows_controller.py

    r3257 r3364  
    88 
    99 
    10 from pylons import request, response 
     10from pylons import request, response, config 
    1111from pylons.controllers import WSGIController 
    1212from pylons.templating import render 
    1313 
    1414from ows_common import exceptions as OWS_E 
    15 from ows_common util import negotiate_version 
     15from ows_common.util import negotiate_version 
     16from ows_common.pylons.decorators import ows_operation 
    1617 
    1718try: 
     
    2526# Configure 
    2627#!TODO: rename this configuration object to something non-NDG specific 
    27 EXCEPTION_TYPE = request.environ['ndgConfig'].get('OWS_SERVER', 'exception_type', 'ogc').lower() 
    28  
     28#EXCEPTION_TYPE = request.environ['ndgConfig'].get('OWS_SERVER', 'exception_type', 'ogc').lower() 
     29EXCEPTION_TYPE = config.get('ows_server.exception_type', 'ogc') 
    2930 
    3031 
     
    4950                logger.exception(e) 
    5051 
    51                 r=render_response('exception_report', report=e.report, format='xml') 
     52                r=render('exception_report', report=e.report, format='xml') 
    5253                r.headers['content-type'] = 'text/xml' 
    5354                return r 
Note: See TracChangeset for help on using the changeset viewer.