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

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/qesdi/wms_ddc_vis/trunk/lib/wms_ddc_vis/controllers/csmlwms2.py@5734
Revision 5734, 499 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.pylons.wms_controller import WMSController
4from cows.service.imps.csmlbackend.wms_csmllayer import CSMLwmsLayerMapper
5
6from wms_ddc_vis.lib.wms_request_log_utils import buildLogString, wms_request_logger
7
8log = logging.getLogger(__name__)
9
10class Csmlwms2Controller(WMSController):
11    layerMapper = CSMLwmsLayerMapper()
12
13   
14    def __before__(self, **kwargs):
15        wms_request_logger.info( buildLogString(request) )
16        WMSController.__before__(self, **kwargs)
17
18
19
Note: See TracBrowser for help on using the repository browser.