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

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

Made the user agent sniffing more specific so it dosen't trigger for IE 8. Also fixed the logging for non wms controllers.

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