Roberto Rosario
deb363ee16
API updates
...
- Move all generic API classes definitions to the rest_api.generics
module.
- Update API status code on insufficient access for the apps:
indexes, parsing, documents, metadata, ocr, permission,
user management.
- Update API tests.
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com >
2019-10-28 00:01:11 -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
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
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
a196205593
Add missing index API view create permission
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-03 16:50:44 -04:00
Michael Price
de65d96fe2
Update cabinets and document_index api views docstrings. Update multi level docstrings as per Python best practices.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 20:27:45 -04:00
Michael Price
1fc06a350b
Consolidate the docstring of the API methods into a class docstring.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 20:22:35 -04:00
Roberto Rosario
88151df2bc
Rewrite the document indexer to allow single index rebuilds,
...
less locks and improve performance.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-05-28 15:22:13 -04:00
Roberto Rosario
5893e149e0
Reduce the check_access boilerplate code.
2016-11-02 04:58:05 -04:00
Roberto Rosario
d04117d345
PEP8 and code style cleanups. Replace lists with tuples.
2015-08-12 04:41:59 -04:00
Roberto Rosario
3023d99a1e
Improve document indexing API. Add django rest framework recursive to serialize index instance nodes.
2015-08-07 03:31:51 -04:00
Roberto Rosario
3b728328ad
PEP8 cleanups, E501.
2015-07-23 04:05:29 -04:00
Roberto Rosario
ace76fc69c
Update apps for new ACLs refactor.
2015-07-01 16:36:20 -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
Roberto Rosario
d26402974a
Allow registering permission from the permission namespace. Replace all permission variables to be lowercase (style guide reserver uppercase variables for constants and literals).
2015-06-28 00:19:49 -04:00
Roberto Rosario
d59ea3ede2
Add from __future__ import unicode_literals, issue #37
2015-01-19 04:06:40 -04:00
Roberto Rosario
45475d9a65
Don't allow adding index template nodes via the API until permission is properly implemented
2015-01-05 14:36:34 -04:00
Roberto Rosario
6fb768a6f8
Issue #128 , Add Indexes API endpoints
2014-12-16 01:37:49 -04:00
Roberto Rosario
ce5fd2e684
Add document indexing API endpoint to return the document indexes to which a document belongs
2014-10-14 04:29:44 -04:00
Roberto Rosario
28a7c9789c
Add document_indexing API endpoints
2014-10-13 19:12:16 -04:00