Ignore:
Timestamp:
23/09/09 09:34:19 (11 years ago)
Author:
pnorton
Message:

Modified the browser sniffing code so that it dosen't trigger for IE 8. Also made some changes to the slab option parsers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cows/trunk/cows/pylons/wms_controller.py

    r5718 r5755  
    371371            finalImg = Image.composite(finalImg, img, finalImg)     
    372372 
    373         # IE < 7 doesn't display the alpha layer right.  Here we sniff the 
     373        # IE 6.0 doesn't display the alpha layer right.  Here we sniff the 
    374374        # user agent and remove the alpha layer if necessary. 
    375375        try: 
    376376            ua = request.headers['User-Agent'] 
     377            log.debug("ua = %s" % (ua,)) 
    377378        except: 
    378379            pass 
    379380        else: 
    380             if 'MSIE' in ua and 'MSIE 7' not in ua: 
     381            if 'MSIE 6.0' in ua: 
    381382                finalImg = finalImg.convert('RGB') 
    382383 
Note: See TracChangeset for help on using the changeset viewer.