32 Commits

Author SHA1 Message Date
Trenton Holmes
59ea37f09c No need for an extra import, the object is smart already 2022-11-01 08:44:30 -07:00
Trenton Holmes
f8c3f12146 Adds more options for the filename formatting 2022-11-01 08:44:30 -07:00
Markus
dd3b5c129c Feature: Dynamic document storage pathes (#916)
* Added devcontainer

* Add feature storage pathes

* Exclude tests and add versioning

* Check escaping

* Check escaping

* Check quoting

* Echo

* Escape

* Escape :

* Double escape \

* Escaping

* Remove if

* Escape colon

* Missing \

* Esacpe :

* Escape all

* test

* Remove sed

* Fix exclude

* Remove SED command

* Add LD_LIBRARY_PATH

* Adjusted to v1.7

* Updated test-cases

* Remove devcontainer

* Removed internal build-file

* Run pre-commit

* Corrected flak8 error

* Adjusted to v1.7

* Updated test-cases

* Corrected flak8 error

* Adjusted to new plural translations

* Small adjustments due to code-review backend

* Adjusted line-break

* Removed PAPERLESS prefix from settings variables

* Corrected style change due to search+replace

* First documentation draft

* Revert changes to Pipfile

* Add sphinx-autobuild with keep-outdated

* Revert merge error that results in wrong storage path is evaluated

* Adjust styles of generated files ...

* Adds additional testing to cover dynamic storage path functionality

* Remove unnecessary condition

* Add hint to edit storage path dialog

* Correct spelling of pathes to paths

* Minor documentation tweaks

* Minor typo

* improving wrapping of filter editor buttons with new storage path button

* Update .gitignore

* Fix select border radius in non input-groups

* Better storage path edit hint

* Add note to edit storage path dialog re document_renamer

* Add note to bulk edit storage path re document_renamer

* Rename FILTER_STORAGE_DIRECTORY to PATH

* Fix broken filter rule parsing

* Show default storage if unspecified

* Remove note re storage path on bulk edit

* Add basic validation of filename variables

Co-authored-by: Markus Kling <markus@markus-kling.net>
Co-authored-by: Trenton Holmes <holmes.trenton@gmail.com>
Co-authored-by: Michael Shamoon <4887959+shamoon@users.noreply.github.com>
Co-authored-by: Quinn Casey <quinn@quinncasey.com>
2022-05-19 14:42:25 -07:00
Trenton Holmes
5ed4597a4f Fixes Document public filename so it will use the local date instead of UTC date 2022-05-13 09:10:36 -07:00
Trenton Holmes
f62193099c Runs pyupgrade to Python 3.8+ and adds a hook for it 2022-05-06 09:04:08 -07:00
Trenton Holmes
6635fa5f0d Runs the pre-commit hooks over all the Python files 2022-03-11 11:34:28 -08:00
kpj
c56cb25b5f Format Python code with black 2022-02-27 15:26:41 +01:00
jonaswinkler
8196208632 fix test case 2021-02-12 01:31:50 +01:00
jonaswinkler
c89be92127 added ASN to filename format #519 2021-02-09 23:03:07 +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
133fd05049 fix for #511 2021-02-08 19:59:14 +01:00
jonaswinkler
e5a7dc0cc7 rework most of the logging 2021-02-05 01:10:29 +01:00
jonaswinkler
f1d15561f6 some bug fixes and tests 2021-01-18 14:16:32 +01:00
jonaswinkler
bee7a06e41 fix bugs and test cases 2021-01-02 15:37:27 +01:00
jonaswinkler
70b64f06cb path sanitation 2020-12-15 14:11:05 +01:00
jonaswinkler
b012086dd8 prevent usage of {tags} directly. 2020-12-14 03:01:50 +01:00
jonaswinkler
972c8baae9 fixes #117 2020-12-14 02:46:46 +01:00
jonaswinkler
bf4370fb81 fixes #130 2020-12-14 02:19:53 +01:00
jonaswinkler
638113864f fixes #90 2020-12-08 13:54:49 +01:00
jonaswinkler
41755c509e codestyle 2020-12-06 19:04:32 +01:00
jonaswinkler
655ce81cb6 changes to filename generation, partially addresses #90 2020-12-06 16:13:37 +01:00
jonaswinkler
1f90d50833 some more tests. 2020-12-01 14:15:43 +01:00
jonaswinkler
f08d494f1b filename handling for archive files. 2020-11-30 21:38:42 +01:00
Jonas Winkler
a10f516fe9 todo note. 2020-11-25 14:51:00 +01:00
Jonas Winkler
a532200d10 code cleanup 2020-11-21 15:34:00 +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
8c40c54421 codestyle 2020-11-18 22:41:14 +01:00
Jonas Winkler
b195d17158 add exception handler for invalid filename formats. 2020-11-13 20:31:51 +01:00
Jonas Winkler
e2270c2ba2 added some more fields for document file naming. 2020-11-12 11:12:39 +01:00
Jonas Winkler
23eae9a3f1 This is how the original filenames were generated. Keep it this way for compatibility. 2020-11-12 10:42:18 +01:00
Jonas Winkler
8b8a2af053 fixed the file handling implementation. The feature is cool, but the original implementation had so many small flaws it wasn't even funny. 2020-11-11 14:21:33 +01:00