Roberto Rosario
64e1c6bb67
Add widget support to SourceColumn
...
Allow passing a widget class to SourceColumn. This makes
using lambdas to render model column unnecesary and are
mostly removed too.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com >
2018-12-22 05:35:31 -04:00
Roberto Rosario
798446f362
Add klass argument to get_object_or_404 usage
...
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com >
2018-12-16 01:55:33 -04:00
Roberto Rosario
278fdc3c9a
Workflows: Don't capture form exceptions
...
Instead of capturing the form save exceptions in the subclass
let the base class do the work.
Use the base class get_instance_extra_data method to avoid
some code repetition.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com >
2018-12-09 15:04:05 -04:00
Roberto Rosario
46cd7353dc
Multiple apps: Sort imports and minor style fixes
...
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com >
2018-12-06 16:38:24 -04:00
Roberto Rosario
8e69178e07
Project: 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 app name claves 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 >
2018-12-05 02:04:20 -04:00
Roberto Rosario
e0d900d952
Workflows: Refactor workflow preview generation
...
Refactor the workflow preview generation to work as a
background task API service. Solves GitLab issue #532 .
The image generation runs as an out of process task
ensuring that the HTTP request is never compromised.
A new task queue named "document_states_fast" was created.
The settings WORKFLOWS_IMAGE_CACHE_TIME,
WORKFLOWS_IMAGE_CACHE_STORAGE_BACKEND,
WORKFLOWS_IMAGE_CACHE_STORAGE_BACKEND_ARGUMENTS we added.
Images generated are stored by default under /mayan/media/workflows.
The Dockerfile and deployment instructions are updated
to include the new queue.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-11-29 02:10:31 -04:00
Roberto Rosario
b6fbce16c0
Add explanation to the launch workflows tool.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-10-04 19:06:07 -04:00
Roberto Rosario
6159bdca45
Fix message typos.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-09-26 22:23:35 -04:00
Roberto Rosario
1088248bf5
Add missing icon from the document state no result template.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-09-03 19:48:09 -04:00
Roberto Rosario
c9dedde1d0
Add no results help text.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-08-30 05:26:48 -04:00
Roberto Rosario
d6b767eb93
Fix typos from the 3-way "papercut" patch merge.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-08-24 01:23:13 -04:00
Roberto Rosario
9273eccbd6
Add support for extended templates when there are no results. Add help messages and useful links to several apps when there are no results available.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-08-23 19:45:48 -04:00
Roberto Rosario
301df39be4
Define a proper redirection after workflow actions are edited.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-08-15 17:52:23 -04:00
Roberto Rosario
57e1fe8cf0
Unify template title rendering. Add support for template subtitles.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-08-14 03:32:19 -04:00
Roberto Rosario
1f059dbb5d
Remove all running workflow instances from documents whose type is removed from the workflow type. This avoid having orphaned workflows running.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-04-06 02:09:05 -04:00
Roberto Rosario
c7c5df1190
Remove warning of workflow triggers being experimental.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-04-05 14:48:08 -04:00
Roberto Rosario
fc560fe63a
Remove workflow states experimental feature warning message.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-04-03 04:00:55 -04:00
Michael Price
775894ee0d
Improve permission having in the workflow app views. Most were made more granular and operate now on an object access basis instead of working per view permission.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 18:27:23 -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
00e69e6f7e
Pass the action class path to the dynamic form to allow
...
validation when the actions instance is not saved yet.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-08-26 22:00:17 -04:00
Roberto Rosario
b63723feaf
Implement a .clean method for the WorkflowAction class.
...
Pass the view request to the form so that it can be passed to the
WorkflowAction clean method.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-08-26 02:55:36 -04:00
Roberto Rosario
257c5d9036
Add warning about the tech preview nature of the transition triggers
...
and state actions.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-08-25 00:01:36 -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
8fea65e3f1
Add support for generating diagrams from workflows.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-08-08 02:47:20 -04:00
Roberto Rosario
28a1edbc72
Initial commit to support workflow actions.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-08-07 05:23:02 -04:00
Roberto Rosario
81f481fadf
Add support for workflow transition triggers.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-08-03 04:01:11 -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
ff59f34b7f
Add document list item view.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-13 17:20:02 -04:00
Roberto Rosario
e4c88e575f
Improve document detection by workflow state including initial state.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-07 13:00:22 -04:00
Roberto Rosario
5798cabd7c
Add support to update the document indexes from workflow state changes.
...
Add a new workflow field called internal_name for easier workflow
reference in document index templates.
Generalize the PropertyHelper class.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-06-06 20:07:15 -04:00
Roberto Rosario
63682a2945
Merge remote-tracking branch 'origin/master' into feature/master_merge
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-03-14 15:57:38 -04:00
Roberto Rosario
d2ead4e1fb
Add view to list documents by their workflow and by their
...
current workflow state.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-02-23 05:36:33 -04:00
Roberto Rosario
5e886d9eaf
Add tool to launch all workflows. Already running workflows are unaffected.
...
Closes GitLab issue #355 .
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-02-23 03:03:20 -04:00
Roberto Rosario
6e1cf57079
Implement document workflows transition ACLs. GitLab issue #321 .
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-02-20 02:37:42 -04:00
Roberto Rosario
5893e149e0
Reduce the check_access boilerplate code.
2016-11-02 04:58:05 -04:00
Roberto Rosario
00f1f25ecf
Fix worklow state and transition deletion views. GH issue #237 .
2015-10-14 14:46:45 -04:00
Roberto Rosario
70a5b0839a
Update redirect variable.
2015-09-23 03:41:33 -04:00
Roberto Rosario
e4a9d72ddc
Simplify document workflow permissions.
2015-09-16 20:25:07 -04:00
Roberto Rosario
683e54fea1
Replace unused lists with tuples.
2015-08-19 13:57:38 -04:00
Roberto Rosario
561b56b12a
Replace usage of get_context_data with get_extra_context.
2015-08-15 03:02:02 -04:00
Roberto Rosario
c84ac0a2fc
Replace index, workflow, document and statistics views that use 'object_list' to SingleObjectListView class.
2015-08-15 01:07:52 -04:00
Roberto Rosario
97bba65668
Code style updates, change lists to tuples.
2015-08-13 15:27:22 -04:00
Roberto Rosario
d04117d345
PEP8 and code style cleanups. Replace lists with tuples.
2015-08-12 04:41:59 -04:00
Roberto Rosario
1e746c700a
PEP8 cleanups.
2015-07-27 23:53:14 -04:00
Roberto Rosario
4527563d89
PEP8 cleanups, specially E501 line too long.
2015-07-22 18:21:37 -04:00
Roberto Rosario
e891fe9525
PEP8 cleanups and code style cleanups.
2015-07-10 17:19:36 -04:00
Roberto Rosario
3af3747be9
Add views to display document list per document type and per workflow.
2015-07-08 18:29:45 -04:00
Roberto Rosario
ace76fc69c
Update apps for new ACLs refactor.
2015-07-01 16:36:20 -04:00
Roberto Rosario
e9ea2dc35a
Modernize usage of the AssignRemove CBV
2015-06-30 17:19:56 -04:00
Roberto Rosario
1c084aa07b
Split Permission and StoredPermission class and model into different modules. Simplified the Permission class.
2015-06-28 01:03:29 -04:00