Views¶
Cloud browser views.
-
cloud_browser.views.
browser
(request, path='', template='cloud_browser/browser.html')¶ View files in a file path.
- Parameters
request – The request.
path – Path to resource, including container as first part of path.
template – Template to render.
-
cloud_browser.views.
document
(request, path='')¶ View single document from path.
- Parameters
request – The request.
path – Path to resource, including container as first part of path.
-
cloud_browser.views.
index
(request)¶ Stash context data in the session and redirect to the cloud browser.
The context data will be passed to the custom view function when exiting the cloud browser context.
- Parameters
request – The request.
-
cloud_browser.views.
settings_view_decorator
(function)¶ Insert decorator from settings, if any.
Note
Decorator in
CLOUD_BROWSER_VIEW_DECORATOR
can be either a callable or a fully-qualified string path (the latter, which we’ll lazy import).