Example #1
0
 def __init__(self,conn_str=None,user_config=None):
     '''
     Init driver, read config and set up proxy data. 
     Notes on Proxies: 
     DIRECT implies no proxy but urllib2 requests may bypass this and read proxy data from the reg/env
     SYSTEM explicitly reads reg/env proxy settings and uses them in a ProxyHandler
     '''
     
     super(WFSDataStore,self).__init__(conn_str,user_config)
     
     #We set the proxy options here as this is the collection point for all WFS/network requests
     self.PP = LDSUtilities.interceptSystemProxyInfo(self.confwrap.readDSParameters('Proxy'),self.PROXY_TYPE[1])
     #convenience proxy map (for urlopen proxyhandler)
     self.pxy = {'http':'{}:{}'.format(self.PP['HOST'],self.PP['PORT'])}
    def __init__(self, conn_str=None, user_config=None):
        '''
        Init driver, read config and set up proxy data. 
        Notes on Proxies: 
        DIRECT implies no proxy but urllib2 requests may bypass this and read proxy data from the reg/env
        SYSTEM explicitly reads reg/env proxy settings and uses them in a ProxyHandler
        '''

        super(WFSDataStore, self).__init__(conn_str, user_config)

        #We set the proxy options here as this is the collection point for all WFS/network requests
        self.PP = LDSUtilities.interceptSystemProxyInfo(
            self.confwrap.readDSParameters('Proxy'), self.PROXY_TYPE[1])
        #convenience proxy map (for urlopen proxyhandler)
        self.pxy = {'http': '{}:{}'.format(self.PP['HOST'], self.PP['PORT'])}