Use Tryton's CDN to download postal codes Remove on 6.4.

Delete resolved issues.

Task #048600
This commit is contained in:
Juanjo Garcia 2022-02-04 14:05:53 +01:00
parent 07c5ad0bac
commit 43ebeb9374
2 changed files with 16 additions and 1 deletions

13
issue8952.diff Normal file
View File

@ -0,0 +1,13 @@
diff --git a/trytond/trytond/modules/country/scripts/import_postal_codes.py b/trytond/trytond/modules/country/scripts/import_postal_codes.py
index 160aed5..d0b3e8e 100755
--- a/trytond/trytond/modules/country/scripts/import_postal_codes.py
+++ b/trytond/trytond/modules/country/scripts/import_postal_codes.py
@@ -36,7 +36,7 @@ def clean(code):
def fetch(code):
sys.stderr.write('Fetching')
- url = 'https://download.geonames.org/export/zip/%s.zip' % code
+ url = 'https://downloads-cdn.tryton.org/geonames/%s.zip' % code
responce = urlopen(url)
data = responce.read()
with zipfile.ZipFile(BytesIO(data)) as zf:

4
series
View File

@ -29,4 +29,6 @@ sao_colors.diff # [sao] Use the same colors as 5.4 version
sao_remove_email.diff # [sao] Removes the email button from the toolbar
worker_logger.diff #[trytond] Move exception handling into transaction to keep the database name
worker_logger.diff #[trytond] Move exception handling into transaction to keep the database name
issue8952.diff # [country] Use Tryton's CDN to download postal codes Remove on 6.4