source: cowsserver/trunk/lib/cowsserver/controllers/csmlwms_csml.py @ 6072

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/cowsserver/trunk/lib/cowsserver/controllers/csmlwms_csml.py@6072
Revision 6072, 701 bytes checked in by spascoe, 11 years ago (diff)

Renaming package directory

Line 
1import logging
2import time
3
4from cows.pylons.wms_controller import WMSController
5from cows.service.imps.csmlbackend.wms_csmllayer import CSMLwmsLayerMapper
6
7from cowsserver.lib.wms_request_log_utils import buildLogString, wms_request_logger
8from cowsserver.lib.base import request
9log = logging.getLogger(__name__)
10
11class CsmlwmsCsmlController(WMSController):
12    layerMapper = CSMLwmsLayerMapper()
13
14   
15    def __before__(self, **kwargs):
16        wms_request_logger.info( buildLogString(request) )
17        WMSController.__before__(self, **kwargs)
18
19
20    def GetMap(self):
21        st = time.time()
22        WMSController.GetMap(self)
23        log.debug("Got Image response in %ss" % (time.time() - st))
Note: See TracBrowser for help on using the repository browser.