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>
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>
Add support for subfolder scanning to watch folders. Closes
GitLab issue #498 and #563.
This commit adds a new field to watch folders called
"include_subdirectories".
The directory walk was also updated to use pathlib2.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
Force text display of object when raising PermissionDenied
to avoid UnicodeDecodeError. Thanks to Mathias Behrle
(@mbehrle) for the report and the debug information.
GitLab issue #576.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This new setting is used to limit the number of bytes read
while determining the MIME type of a new document. A value
of 0 will cause the entire file to be loaded into memory.
1024 appears to be a suitable number for most cases. This
setting defaults to 0 to preserve the current behavior but
might change in a future version.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
Thanks to Manoel Brunnen (@mbru) for the report and debug
information. GitLab issue #557.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
Thanks to Robert Schoeftner (@robert.schoeftner)for the report
and solution. GitLab issue #574.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
Individual link AJAX workers are obsolete now that the menu
is being rendered by its own AJAX renderer.
GitLab issue #562.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
Add tests for the advanced search API. GitLab merge !36.
Thanks to Simeon Walker (@simeon-walker) for the find and fix.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
Use sets and remove explicit index node ordering to allow tests
to work regardless of the node creation order. GitLab issue #559.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
Add random primary key mixin. Split test case code into mixins.
Make the view test case and the API test cases part of the same
class hierachy. Update tests that failed due to the new import
locations.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
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>
Fix spelling errors in documentation and other program texts.
Update the spelling exceptions list.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>