Commit Graph

9 Commits

Author SHA1 Message Date
Roberto Rosario
f3d01a01b2 Import the settings if running from inside Django
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
2019-11-21 02:31:55 -04:00
Roberto Rosario
5defe44420 Allow Python 3 detection when not using Django
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
2019-11-21 02:24:03 -04:00
Roberto Rosario
96b257a7b8 Remove unused import
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
2019-11-21 02:06:56 -04:00
Roberto Rosario
b0729ea714 Update patch_files to work with Python 2 and 3
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
2019-11-21 01:52:57 -04:00
Roberto Rosario
b5c4c61b3f Add file patching tests to the storages app
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
2019-11-21 01:46:51 -04:00
Roberto Rosario
a36c2a6590 Move the file patching code
Moved from the Dependency class to a generalized utility of the
storages app.

Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
2019-11-21 01:46:16 -04:00
Roberto Rosario
02187ab5a5 Remove unused functions
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
2019-04-21 04:03:34 -04:00
Roberto Rosario
f6089e689e PEP8 cleanups
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
2019-04-13 01:51:23 -04:00
Roberto Rosario
0d4ab4f2cf Move setting to the storage app
The setting COMMON_TEMPORARY_DIRECTORY is now
STORAGE_TEMPORARY_DIRECTORY.

Move file related utilities to the storage app.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
2019-04-12 22:26:43 -04:00