Roberto Rosario
0699ad0556
Add support for new document page structure
...
Documents now have their own dedicated DocumentPage
submodel. The old DocumentPage is now called DocumentVersionPage.
This allows mappings between document pages and document version
pages, allowing renumbering, appending pages.
DocumentPages have a content_object to map them to any other
object. For now they only map to DocumentVersionPages.
New option added to the version upload form to append the
pages of the new version.
A new view was added to just append new pages with wraps the
new document version upload form and hides the append pages
checkbox set to True.
Add a new action, reset_pages to reset the pages of the
document to those of the latest version.
Missing: appending tests, checks for proper content_object in OCR and
document parsing.
Author: Roberto Rosario <roberto.rosario@mayan-edms.com >
Date: Thu Oct 11 12:00:25 2019 -0400
2019-10-10 11:55:42 -04:00
Roberto Rosario
ad37228466
Add converter layers, redactions app
...
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com >
2019-08-20 00:21:03 -04:00
Roberto Rosario
4ecf075fd4
Add support for disabling document pages
...
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com >
2019-07-30 03:11:20 -04:00
Roberto Rosario
2e1600c334
Remove obsolete DocumentPageCachedImage manager
...
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com >
2019-07-29 02:53:07 -04:00
Roberto Rosario
f920dffc01
Remove document model cache invalidation
...
The cache invalidation is now handled by the file caching app.
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com >
2019-07-26 01:33:41 -04:00
Roberto Rosario
ec4644b5c9
Fix typo on open method
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-07-16 01:28:55 -04:00
Roberto Rosario
8c064c953a
Add file caching app
...
Convert document image cache to use file cache manager app.
Add setting DOCUMENTS_CACHE_MAXIMUM_SIZE defaults to 500 MB.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-07-15 01:33:32 -04:00
Giacomo Cariello
5c91ab2d73
Fix thumbnail generation issue ( #637 ).
2019-07-10 02:51:11 -04:00
Roberto Rosario
3f86dfc902
Fix typo
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-06-15 02:25:00 -04:00
Roberto Rosario
4baeb6ce7e
Code cleanups
...
PEP8 cleanups. Add keyword arguments.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-05-21 00:56:22 -04:00
Roberto Rosario
2b43aa8d40
Use context manager and reuse the converter page
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-05-14 02:31:58 -04:00
Roberto Rosario
c59f35225c
Use context manager to avoid open files
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-05-14 02:31:02 -04:00
Roberto Rosario
4e5c513529
Remove converter.to_pdf iterator
...
Remove the custom iterator to return the result of a conversion to PDF.
Instead returns a file object which can then be copied around
using shutil.copyfileobj.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-05-14 02:01:14 -04:00
Roberto Rosario
8b073c3151
Sort methods and fix method name typo
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-05-14 01:06:10 -04:00
Roberto Rosario
a0b4d38d19
Close version file object using a context manager
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-05-13 23:44:08 -04:00
Roberto Rosario
1acc352801
Create intermedia file cache folder
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-05-12 02:24:56 -04:00
Roberto Rosario
c7e9a4dc99
Add keyword arguments
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-05-12 02:09:26 -04:00
Roberto Rosario
e5c1aa5606
Fix document list view and add tests
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-05-08 17:50:49 -04:00
Roberto Rosario
8e5b60e1c0
Backport document page view improvements
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-05-07 15:27:46 -04:00
Roberto Rosario
5e4518211f
Remove related attribute of check_access
...
Remove filter_by_access. Replaced by restrict_queryset.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-05-07 02:26:50 -04:00
Roberto Rosario
fda0dd4eaf
Add transaction handling in more places
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-29 14:05:02 -04:00
Roberto Rosario
825af3152f
Use copyfileobj to save documents to files
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-29 04:29:43 -04:00
Roberto Rosario
84c88f9173
Remove app top level star imports
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-27 03:15:43 -04:00
Roberto Rosario
799d47054e
Load the converter class on demand
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-27 02:47:23 -04:00
Roberto Rosario
cd5bc8ba4b
Remove transformation manager methods
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-27 02:21:19 -04:00
Roberto Rosario
74c97314d7
Code style cleanups
...
Add keyword arguments. Sort arguments and models.
Move literals to their own module. Prepend handler_ to
signal handlers.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-26 03:32:35 -04:00
Roberto Rosario
3bcadd047b
Missing change for 18faaa69bd
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-14 01:41:47 -04:00
Roberto Rosario
03ba13e5cb
Allow import UUID_FUNCTION
...
Changes related to the document models split commit.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-09 18:05:26 -04:00
Roberto Rosario
d26279275d
Split document app models into separate modules
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-09 00:15:15 -04:00