Changeset 4163


Ignore:
Timestamp:
03/09/08 10:06:40 (11 years ago)
Author:
spascoe
Message:

Reverted to expecting Genshi 0.4. This requires a different TextTemplate? style.

Location:
cows/trunk/cows/pylons
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • cows/trunk/cows/pylons/ows_controller.py

    r4101 r4163  
    3838 
    3939# Configure 
    40 #!TODO: rename this configuration object to something non-NDG specific 
    41 #EXCEPTION_TYPE = request.environ['ndgConfig'].get('OWS_SERVER', 'exception_type', 'ogc').lower() 
    42 EXCEPTION_TYPE = config.get('ows_server.exception_type', 'ogc') 
    43  
     40EXCEPTION_TYPE = config.get('cows.exception_type', 'ogc') 
    4441 
    4542 
  • cows/trunk/cows/pylons/wms_controller.py

    r4103 r4163  
    1616 
    1717import Image 
    18 from genshi.template import NewTextTemplate 
     18from genshi.template import TextTemplate 
    1919 
    2020from cows.model.wms import WmsDatasetSummary, Dimension 
     
    7373    def _renderCapabilities(self, version, format): 
    7474        if format == 'application/json': 
    75             t = ows_controller.templateLoader.load('wms_capabilities_json.txt', 
    76                                                    cls=NewTextTemplate) 
     75            t = ows_controller.templateLoader.load('wms_capabilities_json_g04.txt', 
     76                                                   cls=TextTemplate) 
    7777        elif version == '1.1.1': 
    7878            t = ows_controller.templateLoader.load('wms_capabilities_1_1_1.xml') 
Note: See TracChangeset for help on using the changeset viewer.