70 Commits

Author SHA1 Message Date
Trenton H
37ae30ccda Forces JSON files to be written as UTF-8, and disables the ensure ASCII option which escapes non-ASCII chars (#4574) 2023-11-13 14:18:21 -08:00
Trenton H
efe779b634 Chore: Cleanup command arguments and standardize process count handling (#4541)
Cleans up some command help text and adds more control over process count for command with a Pool
2023-11-09 11:46:37 -08:00
Trenton H
af9de2838b Allow the user the specifiy the zip file name (#4189) 2023-09-15 16:33:28 -07:00
Trenton Holmes
34b80a4d8e Removes support for Python 3.8 and lower from the code base 2023-09-10 11:42:59 -07:00
Trenton H
e160580c8b Fixes issues with copy2 or copystat and SELinux see #3665 2023-07-22 06:27:49 -07:00
shamoon
6e9be0ba9b Include global and object-level permissions in export / import
adds test for transaction
2023-06-23 23:33:36 -07:00
shamoon
2b9d30cb68 Exclude consumer & AnonymousUser users from export manifest 2023-05-30 20:51:25 -07:00
Trenton H
aabcc9a1c4 Upgrades black to v23, upgrades ruff 2023-04-26 09:35:27 -07:00
Trenton H
30655f1b73 Fixes ruff not running isort against the codebase 2023-04-26 09:35:27 -07:00
Trenton H
d2c02b9102 Configures ruff as the one stop linter and resolves warnings it raised 2023-04-01 17:03:52 -07:00
shamoon
5108bbc192 Rename comments --> notes 2023-03-18 13:59:17 -07:00
Trenton H
67015a8eef Be sure the scratch directory exists before using it as temporary directory 2023-03-01 07:13:31 -08:00
Trenton H
342713d6d2 Moves the mktime call into the if block where it is used, preventing exceptions during rare cases 2023-02-02 07:25:32 -08:00
Matthieu Helleboid
23157b8050 replace --use-filename-prefix with --use-folder-prefix 2023-01-24 11:06:49 -08:00
Matthieu Helleboid
b9807c96ae sort exporter option by alphabetical order 2023-01-24 11:06:49 -08:00
Matthieu Helleboid
420ec2187d add document comments to dedicated manifest file when using 'split-manifest' 2023-01-24 11:06:49 -08:00
Matthieu Helleboid
343bd7df36 Fix split_manifest default value 2023-01-24 11:06:49 -08:00
Matthieu Helleboid
7f287bb311 fix json serialization bug after migration after to Pathlib) 2023-01-24 11:06:49 -08:00
Matthieu Helleboid
8d34fbc756 fix bug on administration exporter when using -d, --delete option 2023-01-24 11:06:49 -08:00
Matthieu Helleboid
b947f63fd9 add split-manifest option to administration exporter 2023-01-24 11:06:49 -08:00
Matthieu Helleboid
44d8bd3151 add prefix option to administration exporter 2023-01-24 11:06:49 -08:00
Matthieu Helleboid
42d4550d9c add no-archive and no-thumbnail options to administration exporter and importer 2023-01-24 11:06:49 -08:00
Trenton H
873522fd82 Updates the exporter to use pathlib and add a few more tests for coverage 2023-01-14 06:33:12 -08:00
Trenton Holmes
a79be46b81 Adds option to allow a user to export directory to a zipfile 2022-12-04 16:38:25 -08:00
Michael Shamoon
24da6ce84e Include storage path in exporter + tests 2022-09-11 07:39:35 -07:00
Michael Shamoon
680055474e Basic verification of Comment export & exporter comment tuple fix
From oprhaned commits b1855a4b7a
53f21574fd

Co-Authored-By: Trenton Holmes <797416+stumpylog@users.noreply.github.com>
2022-08-24 14:24:10 -07:00
Michael Shamoon
b0ae307add python code style 2022-08-23 19:20:08 -07:00
tim-vogel
278e9c12e1 add comment function 2022-08-23 19:19:21 -07:00
Trenton Holmes
ee4e3cebe2 Removes last vestiges of PNG from the tests, code, docs and samples 2022-06-11 14:20:50 -07:00
Michael Shamoon
099fc21764 Add ui_settings to exporter 2022-05-17 11:13:58 -07:00
Trenton Holmes
0c670e25c3 Includes a version.json file with the current version in export. On import, catch certain errors and check the version if possible 2022-05-05 07:30:02 -07:00
Trenton Holmes
6635fa5f0d Runs the pre-commit hooks over all the Python files 2022-03-11 11:34:28 -08:00
Trenton Holmes
55486ac151 Reduces number of warnings from testing from 165 to 128. In doing so, fixes a few minor things in the decrypt and export commands 2022-03-10 18:12:48 -08:00
Tim Vogel
bbe4beca8d fix document_export issue (#191) 2022-03-02 09:35:02 -08:00
kpj
c56cb25b5f Format Python code with black 2022-02-27 15:26:41 +01:00
Stéphane Brunner
dc410ff566 Add --no-progress-bar option to commands 2021-04-18 16:16:11 +02:00
jonaswinkler
12e2e25be6 fixes #771 2021-03-17 22:57:37 +01:00
jonaswinkler
7cdc867307 archive filenames are now stored in the database and checked for collisions just as original filenames as well, unified method for archive version checking 2021-02-09 19:46:19 +01:00
jonaswinkler
6ed228aa18 remove lots of unused code 2021-02-04 23:40:53 +01:00
jonaswinkler
a21d0b01ad delete option for exporter, short options, tests 2021-01-18 15:33:05 +01:00
jonaswinkler
f1d15561f6 some bug fixes and tests 2021-01-18 14:16:32 +01:00
jonaswinkler
d60c3c1abd new exporter that updates the export in place, fixes #376 #343 #166 2021-01-18 01:15:39 +01:00
jonaswinkler
41755c509e codestyle 2020-12-06 19:04:32 +01:00
jonaswinkler
7f1671ac2d changed the way public filenames (i.e., for download and exporting) are generated. #94 2020-12-06 19:03:45 +01:00
jonaswinkler
55e0b383c2 Adjusted the exporter and importer so that they take archived documents into account. 2020-11-28 11:24:59 +01:00
jonaswinkler
9627a91654 removed some obsolete exporter code. 2020-11-26 23:09:17 +01:00
Jonas Winkler
afc3753e58 code cleanup 2020-11-21 14:03:45 +01:00
Jonas Winkler
f976a0b4ba mime type handling 2020-11-20 13:31:03 +01:00
Jonas Winkler
eb6805e37e code style fixes 2020-11-12 21:09:45 +01:00
Jonas Winkler
9a4ff3f807 replaced usages of .id with .pk, fixed filename issue in exporter 2020-11-03 12:37:37 +01:00