Commit Graph
34 Commits
Author SHA1 Message Date
Cédric Krier 5ed7f4e1d1 Add country organizations
issue11689
review417911003
2022-09-15 21:45:37 +02:00
Cédric Krier b660bc7eaf Add UN M49 regions
issue11669
review423711003
2022-09-12 21:31:06 +02:00
Cédric Krier 7462c67fcb Add command line completion with argcomplete
issue11592
review419481003
2022-08-26 18:12:02 +02:00
Cédric Krier 7bd39ae5bf Use Tryton's CDN to download postal codes
issue8952
review360561002
2022-01-20 23:36:34 +01:00
Cédric Krier 430adf2e51 Manage unknown subdivision type
issue11128
review397091002
2022-01-20 23:04:05 +01:00
Cédric Krier 284a22ae5a Follow isort formatting
issue10928
2021-12-11 17:58:42 +01:00
Cédric Krier e8938a96ff Add remove_forbidden_chars in tools
issue10684
review371581002
2021-09-13 23:43:03 +02:00
Cédric Krier 04f7bd1ff1 Manage common user's input error when loading postal codes
issue10577
review363571002
2021-08-06 09:46:32 +02:00
Cédric Krier 60ac8d4325 Use TextIOWrapper instead of encode/decode bytes with StringIO
issue10554
review344471003
2021-07-22 00:05:32 +02:00
Cédric Krier e1f4d78998 Rename zip into postal code
issue9853
review340411002
2021-03-31 23:59:33 +02:00
Christophe bc5baa2109 Remove forbidden chars from imported names
issue9829
review318821002
2021-01-19 22:42:52 +01:00
David Harper b3c382884e Make scripts database argument required
issue9399
review303781002
2020-07-09 10:38:50 +01:00
Sergi Almacellas Abellana e891f9b8a0 Create a zip entry for each subdivision found
issue8852
review266761002
2020-02-17 09:59:27 +01:00
Cédric Krier 1e2a0aefb6 Run all import scripts with active_test disabled
This ensures that all records have the same context and thus can be saved
together.

issue8730
review264421002
2019-10-24 19:18:42 +02:00
Cédric Krier 6b049c74ef Use entrypoint console scripts
and tests scripts with scenario.

issue8662
review258231002
2019-10-14 00:13:00 +02:00
Cédric Krier 4dba78e06a Load and update pycountry data from script
issue8346
review285501002
2019-07-30 23:02:46 +02:00
Cédric Krier 0c06e6cb14 Use SSL to download geonames zip files
issue8415
review287501002
2019-06-26 22:06:39 +02:00
Cédric Krier f384e08971 Update data with pycountry-18.12.8 2019-04-14 17:53:01 +02:00
Sergi Almacellas Abellana 00c3475c9d Create all country zips in a single call on import script
issue7551
review48511002
2018-07-02 12:04:36 +02:00
Cédric Krier cc1e17304c Remove support for Python 2.7
issue7497
review53261002
2018-06-26 19:11:47 +02:00
Cédric Krier eb8fe98468 Make script compatible Python 2 and Python 3
setuptools does not run 2to3 on the scripts so we must ensure the code is
compatible with both versions.

issue7057
review40951003
2018-02-04 23:35:33 +01:00
Cédric Krier ad11c533bc Update to pycountry 16.11.8
As the internal order of pycountry has changed, we use a separate file to ease
the update from the script as it output the all file directly.

issue6227
review27061002
2017-04-23 13:25:02 +02:00
Cédric Krier 1dc91cf686 Add error message when running trytond_import_zip without proteus
issue6266
review32031002
2017-03-21 23:35:01 +01:00
Nicolas Évrard f1ebdf1ca9 Add 3-letters and numeric code
issue5195
review23681002
2016-03-23 11:49:00 +01:00
Cédric Krier af6eb8bb9b proteus set_trytond doesn't have anymore a password parameter
review11791002
2015-01-29 12:34:15 +01:00
Cédric Krier ec551c5e0c Fix flake8 2015-01-08 13:17:22 +01:00
Cédric Krier a2353c9766 Fix most flake8 errors
review8771002
2014-12-02 12:55:15 +01:00
Cédric Krier 7065678e77 Add Zip
issue4004
review9441002
2014-08-04 16:41:49 +02:00
Cédric Krier ebc8a288cf Use new "grouped" attribute
review1005002
2013-09-02 17:38:55 +02:00
Cédric Krier c42bd55d54 Update to pycountry-0.14.7
issue2260
2013-02-23 17:29:40 +01:00
Pierre-Louis Bonicoli 660e90b1a2 make countries.py compatible with pycountry versions >=0.13
pycountry use unicode since version 0.13.

issue2741
review466002
2012-08-21 11:05:37 +02:00
Cédric Krier 7cafb3532a Fix pep8 and pyflakes 2012-04-03 20:06:58 +02:00
Bertrand Chenal 18822cceeb Guidelines 2009-06-26 11:38:36 +02:00
Cédric Krier 5d55679650 Initial commit for country module 2008-10-22 20:20:29 +02:00