Code now resides in common.serialization in the form
of two new functions: yaml_load and yaml_dump.
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
The feature can now work on emails with nested parts.
Also the metadata.yaml attachment no longer needs to be the
first attachment.
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
Python's documentation is incorrect, argument name is flag_list.
Closes GitLab issue #606. Thanks to Samuel Aebi (@samuelaebi)
for the report and debug information.
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
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>
Update use of safe_load and safe_dump to load and dump using
the CSafeLoader with SafeLoader as a fallback.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
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>