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

Class MemberForm

source code


Form to set roles for a member in the project

Nested Classes [hide private]

Inherited from django.forms.forms.Form: __metaclass__

Instance Methods [hide private]
 
__init__(self, project, user, giver, *args, **kwargs)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
clean_roles(self)
Make sure that no roles have been taken out unless the user has the "can_remove_member" permission.
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]
  delegate = forms.BooleanField(required= False, help_text= "Sho...
  base_fields = {'roles': <expedient.clearinghouse.roles.forms.R...
Instance Variables [hide private]
  roles = RoleModelMultipleChoiceField(ProjectRole.objects.all()...
django.forms.ModelMultipleChoiceField to select roles
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, user, 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]

delegate

Value:
forms.BooleanField(required= False, help_text= "Should the member be a\
ble to give the permissions" " and roles to others?")

base_fields

Value:
{'roles': <expedient.clearinghouse.roles.forms.RoleModelMultipleChoice\
Field object at 0x8f6148c>, 'delegate': <django.forms.fields.BooleanFi\
eld object at 0x8f61d6c>}

Instance Variable Details [hide private]

roles

django.forms.ModelMultipleChoiceField to select roles
Value:
RoleModelMultipleChoiceField(ProjectRole.objects.all(), widget= forms.\
CheckboxSelectMultiple, help_text= "Select the roles that the user sho\
uld have in this project.")

Property Details [hide private]

media

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

Get Method:
unreachable._media(self)