summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2019-09-09 15:26:20 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2019-09-09 15:26:52 (GMT)
commit9823da3fc929bfd3cb6136acb1311675aedc337d (patch)
tree37d233f3470e92bc4a1785a023307b552f727f16
parent90e5050dec4e347d41cb05bb0d610f82be256d78 (diff)
downloadpasserelle-grandlyon-cartads-cs-9823da3fc929bfd3cb6136acb1311675aedc337d.zip
passerelle-grandlyon-cartads-cs-9823da3fc929bfd3cb6136acb1311675aedc337d.tar.gz
passerelle-grandlyon-cartads-cs-9823da3fc929bfd3cb6136acb1311675aedc337d.tar.bz2
misc: adapt PDF URLs to match actual network (#35326)
-rw-r--r--grandlyon_cartads_cs/models.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/grandlyon_cartads_cs/models.py b/grandlyon_cartads_cs/models.py
index 34e24bd..d5b4d62 100644
--- a/grandlyon_cartads_cs/models.py
+++ b/grandlyon_cartads_cs/models.py
@@ -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: