misc: adapt PDF URLs to match actual network (#35326)
This commit is contained in:
parent
90e5050dec
commit
9823da3fc9
|
@ -60,6 +60,10 @@ class GLCartaDSCS(AbstractCartaDSCS):
|
|||
# served directly and have to be copied to a different server :/
|
||||
return super(AbstractCartaDSCS, self).soap_client(**kwargs)
|
||||
|
||||
def fix_pdf_url(self, url):
|
||||
# fixup URL for recette environment, another patch will be required for production...
|
||||
return url.replace('http://ads-rec.grandlyon.fr/', 'http://api-rec.grandlyon.com/ads-rec-portail/')
|
||||
|
||||
def get_api_manager_token(self, renew=False):
|
||||
cache_key = 'cartads-%s-token' % self.id
|
||||
if not renew:
|
||||
|
|
Reference in New Issue