Normalize API base names.
Update ViewSet base class, model classes are not needed
the OCR API views.
Split API tests into content and submit tests.
Puntuate view test strings.
Make use of success and title strings.
Make use of external object mixin in document type
settings view.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
This refactor adds two new endpoints to view the OCR
content of versions and documents.
Signed-off-by: Roberto Rosario <Roberto.Rosario.Gonzalez@mayan-edms.com>
Refactor the accesors to behave like methods instead of properties.
This means all accesors will be prepended with the string
"get_" and will include a set of parenthesis.
Improve the ModeAttribute class to use the method's
short_description. This commit also adds support for a
new method .help_text attribute has been added.
Move accessors to their own module, named "methods.py".
Remove the PropertyHelper class as the accessors no longer
need it.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>