Changeset 4076 for cows/trunk


Ignore:
Timestamp:
30/07/08 11:18:35 (11 years ago)
Author:
spascoe
Message:

Added JSON capabilities support. Not tested yet!

File:
1 edited

Legend:

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

    r4073 r4076  
    1616 
    1717import Image 
     18import simplejson 
    1819 
    1920from cows.model.wms import WmsDatasetSummary, Dimension 
     
    7172 
    7273    def _renderCapabilities(self, version, format): 
     74        #!TODO: correct json MIME type 
     75        if format == 'application/json': 
     76            return [simplejson.dumps(c.capabilities)] 
    7377        if version == '1.1.1': 
    7478            t = ows_controller.templateLoader.load('wms_capabilities_1_1_1.xml') 
Note: See TracChangeset for help on using the changeset viewer.