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

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/qesdi/wms_ddc_vis/trunk/lib/wms_ddc_vis/controllers/csmlwfs.py@5734
Revision 5734, 487 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
3log = logging.getLogger(__name__)
4
5from cows.service.imps.csmlbackend.wfs_csmllayer import CSMLwfsLayerMapper
6from cows.pylons.wfs_controller import WFSController
7
8from wms_ddc_vis.lib.wms_request_log_utils import buildLogString, wms_request_logger
9
10class CsmlwfsController(WFSController):
11    layerMapper=CSMLwfsLayerMapper()
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.