anvil_consortium_manager.viewmixins module

class anvil_consortium_manager.viewmixins.AccountAdapterMixin

Bases: object

Class for handling account adapters.

get(request, *args, **kwargs)
get_filterset_class()
get_table_class()
class anvil_consortium_manager.viewmixins.ManagedGroupAdapterMixin

Bases: object

Mixin to handle managed group adapters.

get(request, *args, **kwargs)
post(request, *args, **kwargs)
class anvil_consortium_manager.viewmixins.ManagedGroupGraphMixin

Bases: object

Mixin to add a plotly graph of group structure to context data.

get_context_data(**kwargs)

Add the graph to the context data.

get_graph()

Return a graph of the group structure.

layout_graph()

Lay out the nodes in the graph.

plot_graph()

Create a plotly figure of the graph.

class anvil_consortium_manager.viewmixins.RegisteredWorkspaceAdaptersMixin

Bases: ContextMixin

Add registered workspaces to the context data.

get_context_data(**kwargs)
class anvil_consortium_manager.viewmixins.SingleAccountMixin

Bases: SingleObjectMixin

Retrieve an account using the uuid field.

get_object(queryset=None)

Return the object the view is displaying.

model

alias of Account

class anvil_consortium_manager.viewmixins.WorkspaceAdapterMixin

Bases: object

Class for handling workspace adapters.

get(request, *args, **kwargs)
get_adapter()
get_context_data(**kwargs)
get_workspace_type()
class anvil_consortium_manager.viewmixins.WorkspaceCheckAccessMixin

Bases: object

Mixin to check if the workspace is accessible by the app before allowing access to a view.

check_workspace(workspace)
get(request, *args, **kwargs)
get_access_error_redirect_url()
get_lock_error_message(workspace)
get_workspace()
get_workspace_access()
get_workspace_access_error_message(workspace)
get_workspace_unlocked()
lock_error_message = None
post(request, *args, **kwargs)
workspace_access = None
workspace_access_error_message = None
workspace_unlocked = None