0001-base_adresse-prefer-urljoin-to-os.path.join-11497.patch
passerelle/apps/base_adresse/models.py | ||
---|---|---|
42 | 42 |
return [] |
43 | 43 | |
44 | 44 |
scheme, netloc, path, params, query, fragment = urlparse.urlparse(self.service_url) |
45 |
path = os.path.join(path, 'search/')
|
|
45 |
path = urljoin(path, 'search/')
|
|
46 | 46 |
query_args = {'q': q, 'limit': 1} |
47 | 47 |
if zipcode: |
48 | 48 |
query_args['postcode'] = zipcode |
... | ... | |
73 | 73 |
raise NotImplementedError() |
74 | 74 | |
75 | 75 |
scheme, netloc, path, params, query, fragment = urlparse.urlparse(self.service_url) |
76 |
path = os.path.join(path, 'reverse/')
|
|
76 |
path = urljoin(path, 'reverse/')
|
|
77 | 77 |
query = urlencode({'lat': lat, 'lon': lon}) |
78 | 78 |
url = urlparse.urlunparse((scheme, netloc, path, params, query, fragment)) |
79 | 79 | |
80 |
- |