Changeset 5664 for cowsclient


Ignore:
Timestamp:
25/08/09 10:25:17 (10 years ago)
Author:
pnorton
Message:

Added a second action that downloads data from a WCS server using owslib. The functionality is very basic at the moment.

Also added a class for splitting up times into different components, this isn't used anywhere yet.

Location:
cowsclient/trunk
Files:
5 added
2 edited

Legend:

Unmodified
Added
Removed
  • cowsclient/trunk/buildout/buildout.cfg

    r5628 r5664  
    1919  webob 
    2020  matplotlib 
     21  owslib 
  • cowsclient/trunk/cowsclient/lib/wmc_util.py

    r5660 r5664  
    154154     
    155155    return True 
     156 
     157def proxyFix(url): 
     158    oldProxyVal = os.environ['http_proxy'] 
     159 
     160    if os.environ['http_proxy'] != "" and not _shouldUseProxy(url): 
     161        os.environ['http_proxy'] = "" 
     162        reload(urllib2) 
     163 
     164    return oldProxyVal 
     165 
     166 
     167def resetProxy(oldProxyVal): 
     168    if os.environ['http_proxy'] != oldProxyVal: 
     169        os.environ['http_proxy'] = oldProxyVal 
     170        reload(urllib2) 
Note: See TracChangeset for help on using the changeset viewer.