anvil_consortium_manager.auditor.views module
- class anvil_consortium_manager.auditor.views.AccountAudit(**kwargs)
Bases:
AnVILConsortiumManagerStaffViewRequired,AnVILAuditMixin,TemplateViewView to run an audit on Accounts and display the results.
- audit_class
alias of
AccountAudit
- template_name = 'anvil_consortium_manager/account_audit.html'
- class anvil_consortium_manager.auditor.views.BillingProjectAudit(**kwargs)
Bases:
AnVILConsortiumManagerStaffViewRequired,AnVILAuditMixin,TemplateViewView to run an audit on Workspaces and display the results.
- audit_class
alias of
BillingProjectAudit
- template_name = 'anvil_consortium_manager/billing_project_audit.html'
- class anvil_consortium_manager.auditor.views.IgnoredManagedGroupMembershipCreate(**kwargs)
Bases:
AnVILConsortiumManagerStaffEditRequired,SuccessMessageMixin,CreateViewView to create a new models.IgnoredManagedGroupMembership.
- form_class
alias of
IgnoredManagedGroupMembershipForm
- form_valid(form)
If the form is valid, save the associated model.
- get(request, *args, **kwargs)
Handle GET requests: instantiate a blank version of the form.
- get_context_data(**kwargs)
Insert the form into the context dict.
- get_email()
- get_form(**kwargs)
Get the form and set the inputs to use a hidden widget.
- get_group()
- get_initial()
Return the initial data to use for forms on this view.
- message_already_exists = 'Record already exists for this group and email.'
- model
alias of
IgnoredManagedGroupMembership
- post(request, *args, **kwargs)
Handle POST requests: instantiate a form instance with the passed POST variables and then check if it’s valid.
- success_message = 'Successfully ignored managed group membership.'
- class anvil_consortium_manager.auditor.views.IgnoredManagedGroupMembershipDelete(*args, **kwargs)
Bases:
AnVILConsortiumManagerStaffEditRequired,SuccessMessageMixin,DeleteView- get_object(queryset=None)
Return the object the view is displaying.
- get_success_url()
Return the URL to redirect to after processing a valid form.
- model
alias of
IgnoredManagedGroupMembership
- success_message = 'Successfully stopped ignoring managed group membership record.'
- class anvil_consortium_manager.auditor.views.IgnoredManagedGroupMembershipDetail(**kwargs)
Bases:
AnVILConsortiumManagerStaffViewRequired,DetailViewView to display the details of an models.IgnoredManagedGroupMembership.
- get_object(queryset=None)
Return the object the view is displaying.
- model
alias of
IgnoredManagedGroupMembership
- class anvil_consortium_manager.auditor.views.IgnoredManagedGroupMembershipList(**kwargs)
Bases:
AnVILConsortiumManagerStaffViewRequired,SingleTableMixin,FilterViewView to display a list of models.IgnoredManagedGroupMembership.
- filterset_class
alias of
IgnoredManagedGroupMembershipFilter
- model
alias of
IgnoredManagedGroupMembership
- table_class
alias of
IgnoredManagedGroupMembershipTable
- template_name = 'auditor/ignoredmanagedgroupmembership_list.html'
- class anvil_consortium_manager.auditor.views.IgnoredManagedGroupMembershipUpdate(**kwargs)
Bases:
AnVILConsortiumManagerStaffEditRequired,SuccessMessageMixin,UpdateViewView to update an existing models.IgnoredManagedGroupMembership.
- fields = ('note',)
- get_context_data(**kwargs)
Insert the form into the context dict.
- get_object(queryset=None)
Return the object the view is displaying.
Require self.queryset and a pk or slug argument in the URLconf. Subclasses can override this to return any object.
- model
alias of
IgnoredManagedGroupMembership
- success_message = 'Successfully updated ignored record.'
- class anvil_consortium_manager.auditor.views.IgnoredWorkspaceSharingCreate(**kwargs)
Bases:
AnVILConsortiumManagerStaffEditRequired,SuccessMessageMixin,CreateViewView to create a new models.IgnoredWorkspaceSharing.
- form_class
alias of
IgnoredWorkspaceSharingForm
- form_valid(form)
If the form is valid, save the associated model.
- get(request, *args, **kwargs)
Handle GET requests: instantiate a blank version of the form.
- get_context_data(**kwargs)
Insert the form into the context dict.
- get_email()
- get_form(**kwargs)
Get the form and set the inputs to use a hidden widget.
- get_initial()
Return the initial data to use for forms on this view.
- get_workspace()
- message_already_exists = 'Record already exists for this workspace and email.'
- model
alias of
IgnoredWorkspaceSharing
- post(request, *args, **kwargs)
Handle POST requests: instantiate a form instance with the passed POST variables and then check if it’s valid.
- success_message = 'Successfully ignored workspace sharing.'
- class anvil_consortium_manager.auditor.views.IgnoredWorkspaceSharingDelete(*args, **kwargs)
Bases:
AnVILConsortiumManagerStaffEditRequired,SuccessMessageMixin,DeleteView- get_object(queryset=None)
Return the object the view is displaying.
- get_success_url()
Return the URL to redirect to after processing a valid form.
- model
alias of
IgnoredWorkspaceSharing
- success_message = 'Successfully stopped ignoring workspace sharing record.'
- class anvil_consortium_manager.auditor.views.IgnoredWorkspaceSharingDetail(**kwargs)
Bases:
AnVILConsortiumManagerStaffViewRequired,DetailViewView to display the details of an models.IgnoredWorkspaceSharing object.
- get_object(queryset=None)
Return the object the view is displaying.
- model
alias of
IgnoredWorkspaceSharing
- class anvil_consortium_manager.auditor.views.IgnoredWorkspaceSharingList(**kwargs)
Bases:
AnVILConsortiumManagerStaffViewRequired,SingleTableMixin,FilterViewView to display a list of models.IgnoredWorkspaceSharing.
- filterset_class
alias of
IgnoredWorkspaceSharingFilter
- model
alias of
IgnoredWorkspaceSharing
- table_class
alias of
IgnoredWorkspaceSharingTable
- template_name = 'auditor/ignoredworkspacesharing_list.html'
- class anvil_consortium_manager.auditor.views.IgnoredWorkspaceSharingUpdate(**kwargs)
Bases:
AnVILConsortiumManagerStaffEditRequired,SuccessMessageMixin,UpdateViewView to update an existing models.IgnoredWorkspaceSharing.
- fields = ('note',)
- get_context_data(**kwargs)
Insert the form into the context dict.
- get_object(queryset=None)
Return the object the view is displaying.
Require self.queryset and a pk or slug argument in the URLconf. Subclasses can override this to return any object.
- model
alias of
IgnoredWorkspaceSharing
- success_message = 'Successfully updated ignored record.'
- class anvil_consortium_manager.auditor.views.ManagedGroupAudit(**kwargs)
Bases:
AnVILConsortiumManagerStaffViewRequired,AnVILAuditMixin,TemplateViewView to run an audit on ManagedGroups and display the results.
- audit_class
alias of
ManagedGroupAudit
- template_name = 'anvil_consortium_manager/managedgroup_audit.html'
- class anvil_consortium_manager.auditor.views.ManagedGroupMembershipAudit(**kwargs)
Bases:
AnVILConsortiumManagerStaffViewRequired,SingleObjectMixin,AnVILAuditMixin,TemplateViewView to run an audit on ManagedGroups and display the results.
- get(request, *args, **kwargs)
- get_audit_instance()
- message_not_managed_by_app = 'Cannot audit membership because group is not managed by this app.'
- model
alias of
ManagedGroup
- slug_field = 'name'
- template_name = 'anvil_consortium_manager/managedgroup_membership_audit.html'
- class anvil_consortium_manager.auditor.views.WorkspaceAudit(**kwargs)
Bases:
AnVILConsortiumManagerStaffViewRequired,AnVILAuditMixin,TemplateViewView to run an audit on Workspaces and display the results.
- audit_class
alias of
WorkspaceAudit
- template_name = 'anvil_consortium_manager/workspace_audit.html'
- class anvil_consortium_manager.auditor.views.WorkspaceSharingAudit(**kwargs)
Bases:
AnVILConsortiumManagerStaffViewRequired,SingleObjectMixin,AnVILAuditMixin,TemplateViewView to run an audit on access to a specific Workspace and display the results.
- get(request, *args, **kwargs)
- get_audit_instance()
- get_object(queryset=None)
Return the object the view is displaying.
- template_name = 'anvil_consortium_manager/workspace_sharing_audit.html'