Roberto Rosario
4f93beae74
Fix base class name
...
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com >
2019-10-10 15:52:35 -04:00
Roberto Rosario
af1eae8c52
Merge branch 'versions/minor' into features/multi_version_document
...
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com >
2019-10-10 14:56:47 -04:00
Roberto Rosario
bd0d298be3
New document version improvements from clients/bc
...
- Comment field help text.
- Remove create_document_form_form.
- Use static NewVersionForm.
- Update sources document upload and new version upload view names.
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com >
2019-10-10 14:34:50 -04:00
Roberto Rosario
739d496799
Add dedicated pages append action
...
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com >
2019-10-10 11:53:40 -04:00
Roberto Rosario
ff03ea07ca
Add support for appending pages
...
Add version upload form checkbox.
Add the append_pages keyword argument.
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com >
2019-10-10 02:40:45 -04:00
Roberto Rosario
b0163319eb
Improve source tests layout
...
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com >
2019-09-29 23:14:33 -04:00
Roberto Rosario
2af03eeca8
Fix cabinet and tags upload wizard steps
...
Steps were missing some entries. Closes GitLab issue #632 .
Thanks to Matthias Urhahn (@d4rken) for the report.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-07-05 00:28:01 -04:00
Roberto Rosario
95a1df8072
Backport common mixin and generics improvements
...
* Rename get_object_list to get_source_queryset.
* Add uniqueness validation to SingleObjectCreateView.
* Remove MultipleInstanceActionMixin.
* Backport MultipleObjectMixin improvements.
* Remove ObjectListPermissionFilterMixin.
* Add and improve tests.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-05-06 02:07:35 -04:00
Roberto Rosario
8e731d6280
Backport ACL computation improvements
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-05-04 03:27:30 -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
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
4b4629ce2b
Import from common.generics not from common.views
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-25 03:41:30 -04:00
Roberto Rosario
3f9421fc75
Fix form css class context key
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-24 22:46:09 -04:00
Roberto Rosario
a97c2ec662
Update TwoStateWidget to use a template
...
Make it compatible with the SourceColumn class.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-24 00:46:33 -04:00
Roberto Rosario
4c0b3e9134
Add keyword arguments to the reverse use in views
...
Signed-off-by: Roberto Rosario <Roberto.Rosario.Gonzalez@gmail.com >
2019-04-16 19:25:37 -04:00
Roberto Rosario
6bd8206236
Add keyword arguments to messages uses
...
Signed-off-by: Roberto Rosario <Roberto.Rosario.Gonzalez@gmail.com >
2019-04-16 19:02:41 -04:00
Roberto Rosario
7be25df7d0
Remove star import from the ACL and Common apps
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-15 18:45:25 -04:00
Roberto Rosario
f6f9287e33
Add keyword arguments to get_object_or_404 uses
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-11 20:53:33 -04:00
Roberto Rosario
36a51eeb73
Switch to full app paths
...
Instead of inserting the path of the apps into the Python app,
the apps are now referenced by their full import path.
This solves name clashes with external or native Python libraries.
Example: Mayan statistics app vs. Python new statistics library.
Every app reference is now prepended with 'mayan.apps'.
Existing config.yml files need to be updated manually.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-05 02:02:57 -04:00
Roberto Rosario
382173351a
Source: Change source test behavior
...
Update sourcs to accept a test argument to their check methods.
This is to allow for explicit test behavior like running the
check method code even when the source is disabled and to
not deleted downloaded content during a test.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com >
2019-04-05 01:05:58 -04:00
Roberto Rosario
fb3678bb6f
Sources: Convert furl querystring to text
...
Convert the furl instance to text to allow serializing it into
JSON to be passed as arguments to the background task.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-11-01 03:50:34 -04:00
Roberto Rosario
cc79e75d35
Add improvements to the metadata URL encoding and decoding to support ampersand characters as part of the metadata value. GitLab issue #529 . Thanks to Mark Maglana @relaxdiego for the report.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-10-16 04:58:42 -04:00
Roberto Rosario
e42ea89db7
Show the document type being uploaded in the source view title.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-09-12 02:02:35 -04:00
Roberto Rosario
435fa774f0
Add support for preserving the extension of document files when using the quick label feature. Added to the document properties edit view and the document upload view. Closes GitLab issue #360 .
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-09-05 04:06:13 -04:00
Roberto Rosario
427aad8277
Add no results help texts for the converter, source, motd and mailer app. Add help text to the document type list view. Tweak the CSS of the no result secondary links.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-09-01 03:10:45 -04:00
Roberto Rosario
3c57f7ffa7
Merge branch 'master' into merge_master
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-08-22 03:18:30 -04:00
Roberto Rosario
4f028b1f54
Convert the two_state_widget to a class and update it to use the new icon class.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-08-04 16:56:03 -04:00
Michel Lavoie
57b60c7b2f
Update views.py. Corrected minor grammatical errors in the upload queue message.
2018-07-17 12:38:33 +00:00
Roberto Rosario
061366ffec
Update apps' other modules to use the new Icon class.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-06-29 02:54:14 -04:00
Roberto Rosario
430c7b8c14
Add verbose error reporting when the document upload task fails.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-04-29 23:12:24 -04:00
Michael Price
e9a365333f
Rename the request_data variable to querystring for clarity. Turn the querystring into an IRI to support international characters in metadata values and allow JSON serializer for Celery.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 20:30:40 -04:00
Michael Price
05966afe1e
Move post document upload processing of metadata and tags from sources.model to each wizard step.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 20:30:25 -04:00
Michael Price
460d747424
Add new WizardStep class to decouple the wizard step configuration.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 20:30:10 -04:00
Michael Price
a23f26f4f4
Return to the same source view after uploading a document.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-04-01 20:30:00 -04:00
Roberto Rosario
2052caada4
Remove PreserveGetQuerySet mixin. Update SingleObjectList and
...
MultipleObjectFormActionView views to use a new get_object_list method.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-08-16 22:12:24 -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
c2854d094b
Improve error message display when uploading documents via the
...
AJAX drag & drop widget.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-01 02:32:28 -04:00
Roberto Rosario
14533da646
Merge branch 'master' into feature/sane_source
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-06-16 18:15:12 -04:00
Roberto Rosario
091bac591d
Add source and adf-mode fields to the sane scanner source. Make all fields optional.
...
Improve error handling.
2017-02-06 04:44:04 -04:00
Roberto Rosario
25f1f7d067
Add experimental SANE scanner source.
2017-02-05 04:02:12 -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
5893e149e0
Reduce the check_access boilerplate code.
2016-11-02 04:58:05 -04:00
Roberto Rosario
a0b31d4bfe
Convert the staging file deletion view to CBV. Add staging file deletion permission.
2016-03-20 16:34:39 -04:00
Roberto Rosario
4c4409aa1e
PEP8 cleanups.
2016-03-17 00:44:54 -04:00
Roberto Rosario
6b79824daf
Update uploader style to better match theme and template used. Use the new uploader for new documents only not for document versions.
2016-03-12 04:25:42 -04:00
Roberto Rosario
642c46ec6f
Move dropzone code and style loading to the sources app. Improve dropzone widget appearance. Add Javascript translation catalog support.
2016-03-12 00:49:18 -04:00
Roberto Rosario
452bd45407
Initial support for HTML5 uploads. GitLab issue #162 .
2016-03-10 05:20:49 -04:00
Roberto Rosario
60b7ed6a6d
PEP8 cleanups
2016-03-10 03:35:15 -04:00
Roberto Rosario
9b315a7cf4
Simple list to tupple and queryset count optimizations.
2016-03-09 14:25:43 -04:00
Roberto Rosario
5a70bd0995
Remove document clone function.
2016-03-08 03:44:22 -04:00