Note
This is a public alpha release, and therefore features and functionality may change and the software and documentation may contain technical bugs or other issues. If you discover any issues please consider registering a GitHub issue.
core.views module¶
This module contains views for behaviour common to both Application and DataSource models.
-
class
core.views.
ManageAccessView
(**kwargs)[source]¶ Bases:
django.views.generic.detail.DetailView
Manage a user’s access to a resource.
On GET request will display the access management page. Accepts PUT and DELETE requests to add a user to, or remove a user from the access group. Request responses follow JSend specification (see http://labs.omniti.com/labs/jsend).
-
put
(request, *args, **kwargs)[source]¶ Add a user to the access group for a resource.
If the request is performed by the resource owner or by staff: add them directly to the access group, If the request is performed by the user themselves: add them to the ‘access requested’ group, Else reject the request.
Parameters: - request –
- args –
- kwargs –
Returns:
-