Commit Graph

27 Commits

Author SHA1 Message Date
Valentin Deniaud 3a63f02dae misc: bump black version (#75442) 2023-03-29 14:51:08 +02:00
Valentin Deniaud 989fb52719 misc: apply pyupgrade (#61865) 2022-09-29 16:22:29 +02:00
Agate 1a17d3efa6 django4: replaced *_text with *_str equivalent (#68576) 2022-08-31 11:00:37 +02:00
Valentin Deniaud 347944babf misc: remove usage of "six" module (#63682) 2022-04-20 17:01:01 +02:00
Lauréline Guérin 39d29d19c1
misc: fix pointless-statement pylint error (#62099) 2022-03-25 09:03:36 +01:00
Lauréline Guérin 3dbee7bc63
misc: fix consider-using-with pylint error (#62099) 2022-03-25 09:03:36 +01:00
Lauréline Guérin 35512c9c2f
misc: remove unused-variable pylint error (#62099) 2022-03-25 09:03:36 +01:00
Lauréline Guérin f6370924c8
utils: fix import_site on missing ApiUser (#62422) 2022-03-04 18:51:43 +01:00
Thomas NOËL 1d2d3e485a sector: add a sector_name column in CSV, for readability (#57021) 2021-10-21 09:48:03 +02:00
Thomas NOËL 03f64ed6ff add sectorization system (#56001) 2021-09-03 15:48:54 +02:00
Thomas NOËL 1212096c59 utils: export all apps, and delete all apps on clean import (#56491) 2021-08-31 09:41:01 +02:00
Nicolas Roche 06db6d8767 misc: apply isort (#52937) 2021-05-07 13:51:13 +02:00
Valentin Deniaud 9b2abc479f base: export only editable fields (#51724) 2021-03-09 10:11:36 +01:00
Frédéric Péters 3d9df1e526 trivial: apply black (#49820) 2021-02-20 16:28:47 +01:00
Lauréline Guérin eeeea14a5d
django22: import django.urls (#49188) 2021-01-04 14:05:14 +01:00
Emmanuel Cazenave 4a5f3467d4 base: handle FloatField in import/export (#40336) 2020-03-02 17:04:21 +01:00
Valentin Deniaud 696c66b80a base: allow specifying resources to export (#15269) 2020-01-30 16:30:41 +01:00
Emmanuel Cazenave ae09ae97b6 use json_loads() instead of json.loads() (#38781)
json.loads expects str in python >= 3, < 3.6.
2020-01-29 10:30:47 +01:00
Emmanuel Cazenave b56d0f734e test import export: read/write files in binary mode (#38781) 2020-01-29 10:30:46 +01:00
Emmanuel Cazenave 74064c0c60 use open() to open file (#38923) 2020-01-14 19:20:26 +01:00
Emmanuel Cazenave ee7ff828c8 get StringIO from six (#38923) 2020-01-14 19:20:26 +01:00
Lauréline Guérin ac776b7e4e
cvsdatasource: data is now a new-generation endpoint (#32121) 2019-10-04 14:40:51 +02:00
Frédéric Péters 3c718f8611 tests: add check for import/export of access rights 2019-03-20 14:41:54 +01:00
Frédéric Péters d098de396c general: move logging parameters to its own model (#27162)
(and remove the NOTSET level during the migration)
2018-11-19 12:14:44 +01:00
Frédéric Péters 4d0f124a56 general: use full path to modules (#15689) 2017-12-20 12:17:41 +01:00
Benjamin Dauvergne 736522c00b export_site: add --output=FILE option (#15268) 2017-03-07 11:53:18 +01:00
Benjamin Dauvergne 6d3782a0ee implement JSON import/export (fixes #13887)
You can import/export individual resources or full sites.

  passerelle-manage export_site >export.json

  passerelle-manage import_site [--import-users] [--clean] [--overwrite] [--if-empty] export.json
2017-03-06 13:11:10 +01:00