anvil_consortium_manager.auditor.views module
- class anvil_consortium_manager.auditor.views.AccountAuditReview(**kwargs)
Bases:
AnVILConsortiumManagerStaffViewRequired,AnVILAuditReviewMixin,TemplateViewView to review the results of a Account audit.
- cache_key = 'account_audit_results'
- get_audit_result_not_found_redirect_url()
- template_name = 'auditor/account_audit_review.html'
- class anvil_consortium_manager.auditor.views.AccountAuditRun(**kwargs)
Bases:
AnVILConsortiumManagerStaffViewRequired,AnVILAuditRunMixin,FormViewView to run an audit on Accounts and display the results.
- audit_class
alias of
AccountAudit
- get_success_url()
Return the URL to redirect to after running the audit.
- template_name = 'auditor/account_audit_run.html'
- class anvil_consortium_manager.auditor.views.BillingProjectAuditReview(**kwargs)
Bases:
AnVILConsortiumManagerStaffViewRequired,AnVILAuditReviewMixin,TemplateViewView to review the results of a BillingProject audit.
- cache_key = 'billing_project_audit_results'
- get_audit_result_not_found_redirect_url()
- template_name = 'auditor/billingproject_audit_review.html'
- class anvil_consortium_manager.auditor.views.BillingProjectAuditRun(**kwargs)
Bases:
AnVILConsortiumManagerStaffViewRequired,AnVILAuditRunMixin,FormViewView to run an audit on Workspaces and display the results.
- audit_class
alias of
BillingProjectAudit
- get_success_url()
Return the URL to redirect to after running the audit.
- template_name = 'auditor/billingproject_audit_run.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.ManagedGroupAuditReview(**kwargs)
Bases:
AnVILConsortiumManagerStaffViewRequired,AnVILAuditReviewMixin,TemplateViewView to review the results of a ManagedGroup audit.
- cache_key = 'managed_group_audit_results'
- get_audit_result_not_found_redirect_url()
- template_name = 'auditor/managedgroup_audit_review.html'
- class anvil_consortium_manager.auditor.views.ManagedGroupAuditRun(**kwargs)
Bases:
AnVILConsortiumManagerStaffViewRequired,AnVILAuditRunMixin,FormViewView to display the results of a ManagedGroup audit.
- audit_class
alias of
ManagedGroupAudit
- get_success_url()
Return the URL to redirect to after running the audit.
- template_name = 'auditor/managedgroup_audit_run.html'
- class anvil_consortium_manager.auditor.views.ManagedGroupMembershipAuditReview(**kwargs)
Bases:
AnVILConsortiumManagerStaffViewRequired,AnVILAuditReviewMixin,SingleObjectMixin,TemplateViewView to review the results of a ManagedGroup audit.
- get(request, *args, **kwargs)
- get_audit_result_not_found_redirect_url()
Return the URL to redirect to if no audit results are found.
- get_cache_key()
- 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 = 'auditor/managedgroup_membership_audit_review.html'
- class anvil_consortium_manager.auditor.views.ManagedGroupMembershipAuditRun(**kwargs)
Bases:
AnVILConsortiumManagerStaffViewRequired,AnVILAuditRunMixin,SingleObjectMixin,FormViewView to display the results of a ManagedGroup audit.
- audit_class
alias of
ManagedGroupAudit
- get(request, *args, **kwargs)
Handle GET requests: instantiate a blank version of the form.
- get_audit_instance()
- get_success_url()
Return the URL to redirect to after running the audit.
- message_not_managed_by_app = 'Cannot audit membership because group is not managed by this app.'
- model
alias of
ManagedGroup
- post(request, *args, **kwargs)
Handle POST requests: instantiate a form instance with the passed POST variables and then check if it’s valid.
- slug_field = 'name'
- template_name = 'auditor/managedgroup_membership_audit_run.html'
- class anvil_consortium_manager.auditor.views.WorkspaceAuditReview(**kwargs)
Bases:
AnVILConsortiumManagerStaffViewRequired,AnVILAuditReviewMixin,TemplateViewView to review the results of a Workspace audit.
- cache_key = 'workspace_audit_results'
- get_audit_result_not_found_redirect_url()
- template_name = 'auditor/workspace_audit_review.html'
- class anvil_consortium_manager.auditor.views.WorkspaceAuditRun(**kwargs)
Bases:
AnVILConsortiumManagerStaffViewRequired,AnVILAuditRunMixin,FormViewView to display the results of a Workspace audit.
- audit_class
alias of
WorkspaceAudit
- get_success_url()
Return the URL to redirect to after running the audit.
- template_name = 'auditor/workspace_audit_run.html'
- class anvil_consortium_manager.auditor.views.WorkspaceSharingAuditReview(**kwargs)
Bases:
AnVILConsortiumManagerStaffViewRequired,AnVILAuditReviewMixin,SingleObjectMixin,TemplateViewView to review the results of a WorkspaceSharingAudit.
- get(request, *args, **kwargs)
- get_audit_result_not_found_redirect_url()
Return the URL to redirect to if no audit results are found.
- get_cache_key()
- get_object(queryset=None)
Return the object the view is displaying.
- slug_field = 'name'
- template_name = 'auditor/workspace_sharing_audit_review.html'
- class anvil_consortium_manager.auditor.views.WorkspaceSharingAuditRun(**kwargs)
Bases:
AnVILConsortiumManagerStaffViewRequired,AnVILAuditRunMixin,SingleObjectMixin,FormViewView to display the results of a ManagedGroup audit.
- audit_class
alias of
WorkspaceSharingAudit
- get(request, *args, **kwargs)
Handle GET requests: instantiate a blank version of the form.
- get_audit_instance()
- get_object(queryset=None)
Return the object the view is displaying.
- get_success_url()
Return the URL to redirect to after running the audit.
- message_not_managed_by_app = 'Cannot audit membership because group is not managed by this app.'
- post(request, *args, **kwargs)
Handle POST requests: instantiate a form instance with the passed POST variables and then check if it’s valid.
- slug_field = 'name'
- template_name = 'auditor/workspace_sharing_audit_run.html'