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

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

Changed the cows imports to reflect the new class positions.

Line 
1import logging
2import time
3
4from cows.pylons.wms_controller import WMSController
5from cows.service.imps.csmlbackend.wms.csml_wms_layer_mapper 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.