anvil_consortium_manager.forms module

Forms classes for the anvil_consortium_manager app.

class anvil_consortium_manager.forms.AccountImportForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None)

Bases: django.forms.models.ModelForm

Form to import an Account from AnVIL.

class Meta

Bases: object

fields = ('email', 'is_service_account', 'note')
help_texts = {'email': 'Email must be associated with an account on AnVIL.', 'is_service_account': 'Check this box if the account being imported is a service account.'}
model

alias of anvil_consortium_manager.models.Account

base_fields = {'email': <django.forms.fields.EmailField object>, 'is_service_account': <django.forms.fields.BooleanField object>, 'note': <django.forms.fields.CharField object>}
clean_email()
declared_fields = {}
property media

Return all media required to render the widgets on this form.

class anvil_consortium_manager.forms.AccountUpdateForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None)

Bases: django.forms.models.ModelForm

Form to update an Account.

class Meta

Bases: object

fields = ('note',)
model

alias of anvil_consortium_manager.models.Account

base_fields = {'note': <django.forms.fields.CharField object>}
declared_fields = {}
property media

Return all media required to render the widgets on this form.

class anvil_consortium_manager.forms.BillingProjectImportForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None)

Bases: django.forms.models.ModelForm

Form to import a BillingProject from AnVIL

class Meta

Bases: object

fields = ('name', 'note')
help_texts = {'name': 'Enter the name of the billing project on AnVIL.'}
model

alias of anvil_consortium_manager.models.BillingProject

base_fields = {'name': <django.forms.fields.SlugField object>, 'note': <django.forms.fields.CharField object>}
clean_name()
declared_fields = {}
property media

Return all media required to render the widgets on this form.

class anvil_consortium_manager.forms.BillingProjectUpdateForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None)

Bases: django.forms.models.ModelForm

Form to update a billing project.

class Meta

Bases: object

fields = ('note',)
model

alias of anvil_consortium_manager.models.BillingProject

base_fields = {'note': <django.forms.fields.CharField object>}
declared_fields = {}
property media

Return all media required to render the widgets on this form.

class anvil_consortium_manager.forms.DefaultWorkspaceDataForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None)

Bases: django.forms.models.ModelForm

Default (empty) form for the workspace data object.

class Meta

Bases: object

fields = ('workspace',)
model

alias of anvil_consortium_manager.models.DefaultWorkspaceData

base_fields = {'workspace': <django.forms.models.ModelChoiceField object>}
declared_fields = {}
property media

Return all media required to render the widgets on this form.

class anvil_consortium_manager.forms.GroupAccountMembershipForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None)

Bases: django.forms.models.ModelForm

Form for the GroupAccountMembership model.

class Meta

Bases: object

fields = ('group', 'account', 'role')
help_texts = {'account': 'Select the account to add to this group.', 'group': 'Select the group to add this accoun to. Only groups that are managed by the app are shown.', 'role': 'Select the role that the account should have in the group.\n                       Admin can see group membership, add or remove members, and delete the group.'}
model

alias of anvil_consortium_manager.models.GroupAccountMembership

base_fields = {'account': <django.forms.models.ModelChoiceField object>, 'group': <django.forms.models.ModelChoiceField object>, 'role': <django.forms.fields.TypedChoiceField object>}
declared_fields = {'account': <django.forms.models.ModelChoiceField object>, 'group': <django.forms.models.ModelChoiceField object>}
property media

Return all media required to render the widgets on this form.

class anvil_consortium_manager.forms.GroupGroupMembershipForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None)

Bases: django.forms.models.ModelForm

Form for the GroupGroupMembership model.

class Meta

Bases: object

fields = ('parent_group', 'child_group', 'role')
help_texts = {'child_group': 'This group will be a member of the parent group.', 'role': 'Select the role that the child group should have in the parent group.\n                       Admin can see group membership, add or remove members, and delete the group.'}
model

alias of anvil_consortium_manager.models.GroupGroupMembership

widgets = {'child_group': <dal_select2.widgets.ModelSelect2 object>}
base_fields = {'child_group': <django.forms.models.ModelChoiceField object>, 'parent_group': <django.forms.models.ModelChoiceField object>, 'role': <django.forms.fields.TypedChoiceField object>}
declared_fields = {'parent_group': <django.forms.models.ModelChoiceField object>}
property media

Return all media required to render the widgets on this form.

class anvil_consortium_manager.forms.ManagedGroupCreateForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None)

Bases: django.forms.models.ModelForm

Form to create a ManagedGroup on AnVIL.

class Meta

Bases: object

fields = ('name', 'note')
help_texts = {'name': 'Enter the name of the group to create on AnVIL.'}
model

alias of anvil_consortium_manager.models.ManagedGroup

base_fields = {'name': <django.forms.fields.SlugField object>, 'note': <django.forms.fields.CharField object>}
clean_name()
declared_fields = {}
property media

Return all media required to render the widgets on this form.

class anvil_consortium_manager.forms.ManagedGroupUpdateForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None)

Bases: django.forms.models.ModelForm

Form to update information about a ManagedGroup.

class Meta

Bases: object

fields = ('note',)
model

alias of anvil_consortium_manager.models.ManagedGroup

base_fields = {'note': <django.forms.fields.CharField object>}
declared_fields = {}
property media

Return all media required to render the widgets on this form.

class anvil_consortium_manager.forms.UserEmailEntryForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)

Bases: django.forms.forms.Form

Form for user to enter their email attempting to link their AnVIL account.

base_fields = {'email': <django.forms.fields.EmailField object>}
declared_fields = {'email': <django.forms.fields.EmailField object>}
property media

Return all media required to render the widgets on this form.

class anvil_consortium_manager.forms.WorkspaceCreateForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None)

Bases: django.forms.models.ModelForm

Form to create a new workspace on AnVIL.

class Meta

Bases: object

fields = ('billing_project', 'name', 'authorization_domains', 'note')
help_texts = {'authorization_domains': 'Select one or more authorization domains for this workspace.\n                        These cannot be changed after creation.', 'billing_project': 'Enter the billing project in which the workspace should be created.\n                               Only billing projects that have this app as a user are shown.', 'name': 'Enter the name of the workspace to create.'}
model

alias of anvil_consortium_manager.models.Workspace

widgets = {'authorization_domains': <dal_select2.widgets.ModelSelect2Multiple object>, 'billing_project': <dal_select2.widgets.ModelSelect2 object>}
base_fields = {'authorization_domains': <django.forms.models.ModelMultipleChoiceField object>, 'billing_project': <django.forms.models.ModelChoiceField object>, 'name': <django.forms.fields.SlugField object>, 'note': <django.forms.fields.CharField object>}
clean()

Hook for doing any extra form-wide cleaning after Field.clean() has been called on every field. Any ValidationError raised by this method will not be associated with a particular field; it will have a special-case association with the field named ‘__all__’.

declared_fields = {'billing_project': <django.forms.models.ModelChoiceField object>}
property media

Return all media required to render the widgets on this form.

class anvil_consortium_manager.forms.WorkspaceGroupSharingForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None)

Bases: django.forms.models.ModelForm

Form for the WorkspaceGroupSharing model.

class Meta

Bases: object

fields = ('workspace', 'group', 'access', 'can_compute')
help_texts = {'access': 'Select the access level that this group should have.\n                         A "Reader" can see data int the workspace.\n                         A "Writer" can add or remove data in the workspace.\n                         An "Owner" can share the workspace with others or delete the workspace.', 'can_compute': 'Select this box if the group should have the ability to incur computing costs\n                              in the workspace.\n                              Readers cannot be granted compute access.', 'group': 'Select the group that this workspace should be shared with.', 'workspace': 'Select the workspace to share with.'}
model

alias of anvil_consortium_manager.models.WorkspaceGroupSharing

widgets = {'group': <dal_select2.widgets.ModelSelect2 object>, 'workspace': <dal_select2.widgets.ModelSelect2 object>}
base_fields = {'access': <django.forms.fields.TypedChoiceField object>, 'can_compute': <django.forms.fields.BooleanField object>, 'group': <django.forms.models.ModelChoiceField object>, 'workspace': <django.forms.models.ModelChoiceField object>}
declared_fields = {}
property media

Return all media required to render the widgets on this form.

class anvil_consortium_manager.forms.WorkspaceImportForm(workspace_choices=[], *args, **kwargs)

Bases: django.forms.forms.Form

Form to import a workspace from AnVIL – new version.

base_fields = {'note': <django.forms.fields.CharField object>, 'workspace': <django.forms.fields.ChoiceField object>}
declared_fields = {'note': <django.forms.fields.CharField object>, 'workspace': <django.forms.fields.ChoiceField object>}
property media

Return all media required to render the widgets on this form.

title = 'Import a workspace'
class anvil_consortium_manager.forms.WorkspaceUpdateForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None)

Bases: django.forms.models.ModelForm

Form to update information about a Workspace.

class Meta

Bases: object

fields = ('note',)
model

alias of anvil_consortium_manager.models.Workspace

base_fields = {'note': <django.forms.fields.CharField object>}
declared_fields = {}
property media

Return all media required to render the widgets on this form.