Tryton - Issues

 

Issue8346

Title Load and update pycountry data from script
Priority feature Status chatting
Superseder Nosy List ced, pokoli, resteve
Type performance Components country, currency
Assigned To Keywords
Reviews

Created on 2019-05-10.19:24:14 by ced, last changed by resteve.

Messages
msg49709 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2019-05-13.11:04:28
It will be an intensive load and probably long process. I do not think it should be managed by a user request.
Also there is no point to run it again if the pycountry version did not change.
msg49707 (view) Author: [hidden] (pokoli) (Tryton committer) Date: 2019-05-13.08:51:24
I'm wondering if it won't be better to use a wizard on the server instead of a script so the users can update their own data without requiring the intervention of the system administrator.
msg49702 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2019-05-10.19:24:14
Managing those data inside the XML is quiet painful.
Instead I think we should use a script a little bit like the trytond_import_zip but using pycountry.

The script could manage the update using the ISO code as ID.

As it can be slow and not everybody needs every countries or currencies. I think the scripts could take as argument a list of ISO code to create/update.
History
Date User Action Args
2019-05-13 12:09:21restevesetnosy: + resteve
2019-05-13 11:04:28cedsetmessages: + msg49709
2019-05-13 08:51:25pokolisetstatus: unread -> chatting
nosy: + pokoli
messages: + msg49707
2019-05-10 19:25:25cedlinkissue8344 superseder
2019-05-10 19:24:37cedlinkissue8345 superseder
2019-05-10 19:24:14cedcreate

Showing 10 items. Show all history (warning: this could be VERY long)