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

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