Changeset 5742 for qesdi


Ignore:
Timestamp:
21/09/09 09:54:33 (10 years ago)
Author:
pnorton
Message:

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

Location:
qesdi/wms_ddc_vis/trunk/lib/wms_ddc_vis/controllers
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • qesdi/wms_ddc_vis/trunk/lib/wms_ddc_vis/controllers/coastwms.py

    r5734 r5742  
    242242        try: 
    243243            ua = request.headers['User-Agent'] 
     244            log.debug("ua = %s" % (ua,)) 
    244245        except: 
    245246            pass 
    246247        else: 
    247             if 'MSIE' in ua and 'MSIE 7' not in ua: 
     248            if 'MSIE 6.0' in ua: 
    248249                finalImg = finalImg.convert('RGB') 
    249250 
  • qesdi/wms_ddc_vis/trunk/lib/wms_ddc_vis/controllers/csmlwcs.py

    r5734 r5742  
    33from cows.service.imps.csmlbackend.wcs_csmllayer import CSMLwcsCoverageMapper 
    44from cows.pylons.wcs_controller import WCSController 
     5 
     6from pylons import request 
    57 
    68from wms_ddc_vis.lib.wms_request_log_utils import buildLogString, wms_request_logger 
     
    1315    def __before__(self, **kwargs): 
    1416        wms_request_logger.info( buildLogString(request) ) 
    15         WMSController.__before__(self, **kwargs) 
     17        WCSController.__before__(self, **kwargs) 
  • qesdi/wms_ddc_vis/trunk/lib/wms_ddc_vis/controllers/csmlwfs.py

    r5734 r5742  
    22 
    33log = logging.getLogger(__name__) 
     4 
     5from pylons import request 
    46 
    57from cows.service.imps.csmlbackend.wfs_csmllayer import CSMLwfsLayerMapper 
     
    1315    def __before__(self, **kwargs): 
    1416        wms_request_logger.info( buildLogString(request) ) 
    15         WMSController.__before__(self, **kwargs) 
     17        WFSController.__before__(self, **kwargs) 
Note: See TracChangeset for help on using the changeset viewer.