Package expedient :: Package clearinghouse :: Package project :: Module forms :: Class AddMemberForm
[hide private]
[frames] | no frames]

Class AddMemberForm

source code


Form to add a member to a project

Has fields to select a form and select roles.

Nested Classes [hide private]

Inherited from django.forms.forms.Form: __metaclass__

Instance Methods [hide private]
 
__init__(self, project, giver, *args, **kwargs)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
save(self) source code

Inherited from django.forms.forms.BaseForm: __getitem__, __iter__, __unicode__, add_initial_prefix, add_prefix, as_p, as_table, as_ul, clean, full_clean, has_changed, hidden_fields, is_multipart, is_valid, non_field_errors, visible_fields

Inherited from django.forms.forms.BaseForm (private): _clean_fields, _clean_form, _get_changed_data, _get_errors, _get_media, _html_output, _post_clean, _raw_value

Inherited from django.utils.encoding.StrAndUnicode: __str__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]
  base_fields = {'user': <django.forms.models.ModelChoiceField o...
Instance Variables [hide private]
  user = forms.ModelChoiceField(User.objects.get_empty_query_set...
django.forms.ModelChoiceField to select a user
  roles = RoleModelMultipleChoiceField(ProjectRole.objects.get_e...
django.forms.ModelMultipleChoiceField to select roles
  delegate = forms.BooleanField(required= False, help_text= "Sho...
django.forms.BooleanField should the new member be able to give the roles/permissions she has to others?
Properties [hide private]
  media
Provide a description of all media required to render the widgets on this form

Inherited from django.forms.forms.BaseForm: changed_data, errors

Inherited from object: __class__

Method Details [hide private]

__init__(self, project, giver, *args, **kwargs)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

Class Variable Details [hide private]

base_fields

Value:
{'user': <django.forms.models.ModelChoiceField object at 0x8f61a4c>, '\
roles': <expedient.clearinghouse.roles.forms.RoleModelMultipleChoiceFi\
eld object at 0x8f61c0c>, 'delegate': <django.forms.fields.BooleanFiel\
d object at 0x8f61cec>}

Instance Variable Details [hide private]

user

django.forms.ModelChoiceField to select a user
Value:
forms.ModelChoiceField(User.objects.get_empty_query_set(), help_text= \
"Select the new user to add to the project.")

roles

django.forms.ModelMultipleChoiceField to select roles
Value:
RoleModelMultipleChoiceField(ProjectRole.objects.get_empty_query_set()\
, widget= forms.CheckboxSelectMultiple, help_text= "Select the roles t\
hat the user should have in this project.")

delegate

django.forms.BooleanField should the new member be able to give the roles/permissions she has to others?
Value:
forms.BooleanField(required= False, help_text= "Should the new member \
be able to give the new permissions" " and roles to others?")

Property Details [hide private]

media

Provide a description of all media required to render the widgets on this form

Get Method:
unreachable._media(self)