source: qesdi/wms_ddc_vis/trunk/lib/wms_ddc_vis/controllers/csmlwcs.py @ 5734

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/qesdi/wms_ddc_vis/trunk/lib/wms_ddc_vis/controllers/csmlwcs.py@5734
Revision 5734, 493 bytes checked in by pnorton, 10 years ago (diff)

Added some wms request logging that writes the parameeters and the header information to a file. Hopefully this will enable statistics to be generated on the data usage.

Also made some changes to the demo page so that it works in IE.

Line 
1import logging
2
3from cows.service.imps.csmlbackend.wcs_csmllayer import CSMLwcsCoverageMapper
4from cows.pylons.wcs_controller import WCSController
5
6from wms_ddc_vis.lib.wms_request_log_utils import buildLogString, wms_request_logger
7
8log = logging.getLogger(__name__)
9
10class CsmlwcsController(WCSController):
11    layerMapper=CSMLwcsCoverageMapper()
12
13    def __before__(self, **kwargs):
14        wms_request_logger.info( buildLogString(request) )
15        WMSController.__before__(self, **kwargs)
Note: See TracBrowser for help on using the repository browser.