Michael Price
28aa0b913c
Reorganize and sort models and managers according to Mayan's best practices.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 20:21:37 -04:00
Michael Price
d03c6b4646
Update to Fancybox 3. Update to jQuery 3.3.1. Update and simplify MayanImage class.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 20:13:03 -04:00
Michael Price
8590bff6e4
Convert document thumbnails, preview, image preview and staging files to template base widgets. Unify all updated widgets. Display resolution settings are now specified as width and height and not a single resolution value.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 20:04:05 -04:00
Roberto Rosario
3a695618c1
Add get_absolute_url method to document types.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-09-17 03:36:21 -04:00
Roberto Rosario
f0baa16cde
Backport support for global and object event notification. GitLab issue #262 .
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-09-17 03:12:40 -04:00
Roberto Rosario
5c138c7dbc
Silence the second properties edited event when the initial
...
version of a new document finishes processing. GitLab issue #433 .
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-09-05 03:27:05 -04:00
Roberto Rosario
1faa63f56c
Move extension preservetation code to the model. Improve document,
...
version and API views to include proper mimetype and encoding.
Update respective tests. GitLab issue #415 .
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-08-15 00:18:34 -04:00
Roberto Rosario
bc07bb154d
Add support for preserving the file extenstion when downloading a document
...
version. GitLab issue #415 .
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-08-11 01:46:26 -04:00
Roberto Rosario
0ba84f256d
Convert the document version list view to item view mode.
...
Add document version preview and thumbnail widgets.
Update the new version upload event have the version
as the target and the document as the action object.
Backported from the development branch.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-08-11 00:19:26 -04:00
Roberto Rosario
5fedc2c3b0
Make document version order deterministic.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-21 17:20:58 -04:00
Roberto Rosario
f09321f6ab
Fix deprecation warnings for Django 1.11 and Django 2.0.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-21 00:25:18 -04:00
Roberto Rosario
877572d2b3
Use class names for clarity.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-08 14:05:19 -04:00
Roberto Rosario
c6de76822e
Add two new setting options to control the caching of page images.
...
DOCUMENTS_DISABLE_BASE_IMAGE_CACHE and
DOCUMENTS_DISABLE_TRANSFORMED_IMAGE_CACHE.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-07 02:16:23 -04:00
Roberto Rosario
d4e1a506ed
Add duplicated document scan support.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-06 02:56:35 -04:00
Roberto Rosario
55eedc153e
Convert document version checksum field from a text field to a char
...
field to be able to index across all db backends without problem.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-05 16:10:05 -04:00
Roberto Rosario
2ec939e595
Index the document checksum field for faster searches by checksum.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-05 15:44:16 -04:00
Roberto Rosario
6c6ca38374
Replace all instances of unicode only handling to use force_text.
...
Replace all __unicode__ methods to __str__ and the
@python_2_unicode_compatible decorator.
Replace all instance of smart_str, smart_unicode, force_uncode
with force_text.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-05 15:03:24 -04:00
Roberto Rosario
6a9c66ff3f
Return False for the document's exists() method when it doesn't have
...
a document version.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-06-30 17:47:01 -04:00
Roberto Rosario
eb29cd502c
Fix typos.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-06-21 02:26:33 -04:00
Roberto Rosario
4150fea2ad
Add PDF orientation detection. Closes GitLab issue #387 .
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-06-16 22:30:07 -04:00
Roberto Rosario
fede3ec0ba
Return an empty DocumentPage Queryset when a document has no latest version.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-05-28 01:06:33 -04:00
Roberto Rosario
7a0c2224bb
Add model docstrings.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-04-25 14:21:30 -04:00
Roberto Rosario
86a602aa34
PEP8 cleanups.
2016-12-31 02:25:02 -04:00
Roberto Rosario
4f889fc21d
Move the document language choice list from the model to the form.
...
Pycoutry upgrades or user changes to the language choice list won't
trigger a migration anymore. Closes GitLab issue #328 .
2016-12-31 02:20:56 -04:00
Roberto Rosario
1e194e04fa
Move new version creation blocking from the documents app to the checkouts app.
...
Closes GitLab #294 .
2016-12-22 01:45:43 -04:00
Roberto Rosario
bc7f5f44ed
Improve document page image lazy loading. Use font awesome spinner and CSS3 animation.
2016-11-04 03:33:24 -04:00
Roberto Rosario
3df30b63f3
Make sure the method has sensible defaults.
2016-11-04 01:34:12 -04:00
Roberto Rosario
2cdee10d50
Make sure transformation arguments are always valid.
2016-11-03 15:34:32 -04:00
Roberto Rosario
621c988809
Simplify filter_by_access boilerplate code
2016-11-02 03:48:16 -04:00
Roberto Rosario
c0194c63dc
Refactor document page image generation and transformation classes
...
to cache all transformed versions of a document page.
2016-11-02 02:34:57 -04:00
Roberto Rosario
6e3d99670c
Complete conversion of download views to CBV views using django-downloadview.
...
This also removes dependency on the filetransfers library.
2016-10-31 01:00:35 -04:00
Roberto Rosario
b8b2e0e929
Initial commit to support per page search.
2016-10-27 02:48:40 -04:00
Roberto Rosario
8d549df088
Index the is_stub and is_deleted document boolean fields.
2016-05-09 19:54:32 -04:00
Roberto Rosario
23f40ac4aa
PEP8 cleanups.
2016-04-27 20:31:02 -04:00
Roberto Rosario
c6890c487a
Extract a file like object's file name as per docs (using the .name property) and not an unicode representation of the file object instance. Reference: https://docs.python.org/2.7/library/stdtypes.html#file-objects
2016-03-30 01:32:53 -04:00
Roberto Rosario
5de63c4477
Add support for verifying and unverifying signatures after a key is added or deleted.
2016-03-26 04:23:16 -04:00
Roberto Rosario
ffb29e0f54
Remove obsolete Document property. Use resolved_object in documents links to avoid context variable clashes with signatures.
2016-03-25 04:12:44 -04:00
Roberto Rosario
7dc260046b
Update the document type quick label model verbose name from 'Quick rename template' to 'Quick label'.
2016-03-21 16:25:16 -04:00
Roberto Rosario
28f3b7551d
Consolidate document page image generation as binary or base64 to a single place at the converter class level.
2016-03-21 03:44:45 -04:00
Roberto Rosario
45f90cce50
Return the instance when a document is added as recent for an user.
2016-03-19 02:20:01 -04:00
Roberto Rosario
3d36f1b828
Update Document model's uuid field to use Django's native UUIDField class.
2016-03-15 01:44:34 -04:00
Roberto Rosario
5b6b35f1c3
Make document type deletion period optional.
2016-03-09 14:39:16 -04:00
Roberto Rosario
927c0bf657
Remove remaining usage of django.contrib.auth.model.User. GitLab issue #225 .
2016-03-08 02:21:03 -04:00
Roberto Rosario
a1a0a6da52
PEP8 Cleanups.
2015-10-28 02:14:48 -04:00
Roberto Rosario
da4c41c5b2
Change the way new document version are blocked, moving the logic to the documents app from the checkouts app signal handler. Disable the upload new document version button and have the new version upload view redirect to the document version list with a message. GitLab issue #231 .
2015-10-23 06:06:59 -04:00
Roberto Rosario
9fbc8647b8
Fix document list generation for the document's type change views. Move type change event and recent document addition to the models. Add view tests for the document's type change views.
2015-10-20 20:03:54 -04:00
Roberto Rosario
19a2c02594
Document count column in document type list view is now permission aware.
2015-10-19 02:19:08 -04:00
Roberto Rosario
6e43b99ecd
Add natural key serialization.
2015-10-17 05:13:58 -04:00
Roberto Rosario
86ff835839
PEP8 Cleanups.
2015-10-07 22:24:44 -04:00
Roberto Rosario
3e7cd0c1ea
Move retention policies enforcement code to the DocumentType model manager. Add corresponding tests (test_auto_trashing and test_auto_delete).
2015-09-27 00:35:56 -04:00