Roberto Rosario
95a1df8072
Backport common mixin and generics improvements
...
* Rename get_object_list to get_source_queryset.
* Add uniqueness validation to SingleObjectCreateView.
* Remove MultipleInstanceActionMixin.
* Backport MultipleObjectMixin improvements.
* Remove ObjectListPermissionFilterMixin.
* Add and improve tests.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-05-06 02:07:35 -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
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
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
afd4748426
Don't try to return a serializer if there is no request object. Used when the API view is being introspected.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 20:00:27 -04:00
Michael Price
4378b28777
Update API vies and serializers for the latest Django REST framework version. Replace DRF Swagger with DRF-YASG.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 18:31:22 -04:00
Roberto Rosario
70dfb1561d
Refactor the metadata API to conform to best practices.
...
Perform model validation on document type metadata type and
document type API endpoints.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-02-23 02:13:59 -04:00
Roberto Rosario
ce6f59b9bd
Merge remote-tracking branch 'origin/master' into feature/merge_master
2017-02-13 21:00:56 -04:00
Jesaja Everling
280f0e74be
Passing self.request.data to serializer not self.request.POST
2017-02-09 20:14:25 +02:00
Roberto Rosario
5893e149e0
Reduce the check_access boilerplate code.
2016-11-02 04:58:05 -04:00
Roberto Rosario
5a15a34818
Add document metadata API tests. Fix document metadata list API view.
2016-05-10 18:57:50 -04:00
Roberto Rosario
a817aa887f
Add document type metadata type API tests. Improve document type metadata type delete API view.
2016-05-10 16:52:29 -04:00
Roberto Rosario
97bba65668
Code style updates, change lists to tuples.
2015-08-13 15:27:22 -04:00
Roberto Rosario
58d919d173
Initial commit to remove use of eval. gh-issue #151 .
2015-07-22 23:19:43 -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
f4d3767b15
PEP8 cleanup, remove unused imports, fix permission check when removing metadata from a document
2015-01-26 19:17:35 -04:00
Roberto Rosario
b2580dc37c
Add access control check to the APIDocumentMetadataListView API view, add docstrings for the get and post methods
2015-01-23 23:11:18 -04:00
Gabriele Platania
5c9c3d2cd2
Fixed the problems with the metadata API
2015-01-20 14:28:43 +01:00
Gabriele Platania
157f351a08
Fixed the serialization problem with the optional metadata
2015-01-19 17:46:11 +01:00
Roberto Rosario
d59ea3ede2
Add from __future__ import unicode_literals, issue #37
2015-01-19 04:06:40 -04:00
Roberto Rosario
cff4a97d34
Simplify document metadata API endpoints, make document metadata endpoints more consistent, improve error reporting
2014-12-13 06:40:57 -04:00
Roberto Rosario
4b7f4a683f
Simplify and improve document metadata views, improve docstrings
2014-12-02 00:44:41 -04:00
Roberto Rosario
ca847bed2c
Add document type metadata type API endpoints documentation
2014-12-01 16:17:04 -04:00
Roberto Rosario
d257d6db85
Merge document type optional and required metadata type add views
2014-12-01 16:14:14 -04:00
Roberto Rosario
727ae0bea8
Add TODO reminder
2014-10-30 02:27:37 -04:00
Roberto Rosario
eb878c165b
Revert "Issue #56 , #8 , now that metadata types are automatically added to a document upon type change, there is no more need for the document metadata add and remove code, view, API"
...
This reverts commit c390fc21d7 .
Re adding this feature, only required metadata should be automatically added, optional metadata would be added by the user
2014-10-29 20:17:19 -04:00
Roberto Rosario
c390fc21d7
Issue #56 , #8 , now that metadata types are automatically added to a document upon type change, there is no more need for the document metadata add and remove code, view, API
2014-10-28 02:16:53 -04:00
Roberto Rosario
1b0a3cbb71
Improve docstrings of existing metadata API endpoints and add endpoints to view, add and remove metadata types to document types
2014-10-23 11:38:03 -04:00
Roberto Rosario
97dcf507ab
PEP8 cleanups
2014-10-08 18:14:05 -04:00
Roberto Rosario
a85b3b1526
Add metadata app API endpoints
2014-10-07 08:57:37 -04:00