Changeset 5202


Ignore:
Timestamp:
20/04/09 22:33:04 (11 years ago)
Author:
spascoe
Message:

Added renderOptsparameter hook for UKCP

Location:
cows/trunk
Files:
2 edited

Legend:

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

    r5173 r5202  
    8282    def _renderCapabilities(self, version, format): 
    8383        if format == 'application/json': 
    84             t = ows_controller.templateLoader.load('wms_capabilities_json_g04.txt', 
     84            t = ows_controller.templateLoader.load('wms_capabilities_json.txt', 
    8585                                                   cls=NewTextTemplate) 
    8686        elif version == '1.1.1': 
     
    503503        format = self._getFormatParam() 
    504504 
    505         img = layerObj.getLegendImage() 
     505        # This hook alows extra arguments to be passed to the layer backend.  It 
     506        # is required for UKCP. 
     507        renderOpts = dict(request_params=self._owsParams) 
     508 
     509        img = layerObj.getLegendImage(renderOpts=renderOpts) 
    506510 
    507511        buf = StringIO() 
  • cows/trunk/setup.py

    r5102 r5202  
    33setup( 
    44    name='cows', 
    5     version='0.2.3', 
     5    version='0.2.4', 
    66     
    77    description='CEDA OGC Web Services Framework (COWS).  A framework for creatining integrated OGC web services using Pylons', 
Note: See TracChangeset for help on using the changeset viewer.