Changeset 1024

Show
Ignore:
Timestamp:
01/21/08 09:42:21
Author:
domlowe
Message:

fixed bug with url encoding and also removed unnecessary line setting self.provider twice

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • OWSLib/branches/wcstemp/owslib/coverage/wcs100.py

    r1023 r1024  
    100100         
    101101        base_url = self._getOperationByName('GetCoverage').methods[method]['url'] 
    102  
     102         
    103103        #process kwargs 
    104104        request = {'version': self.version, 'request': 'GetCoverage', 'service':'WCS'} 
     
    118118        #encode and request 
    119119        data = urlencode(request) 
    120         u = urlopen(base_url, data=data) 
     120        fullurl=base_url + '?' + data 
     121        u=urlopen(fullurl) 
    121122 
    122123        # check for service exceptions, and return #TODO - test this bit properly. 
     
    192193    Implements IServiceProvider""" 
    193194    def __init__(self,elem): 
    194         self.provider=elem.find(ns('organisationName')).text 
    195195        try: 
    196196            self.provider=elem.find(ns('organisationName')).text