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()