Package expedient :: Package clearinghouse :: Package roles :: Module forms :: Class SelectRoleForm
[hide private]
[frames] | no frames]

Class SelectRoleForm

source code


Form to select a role and a giver to create a ProjectRoleRequest

Nested Classes [hide private]
  Meta

Inherited from django.forms.models.ModelForm: __metaclass__

Instance Methods [hide private]
 
__init__(self, roles_qs, roles_to_users, *args, **kwargs)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
clean(self)
Hook for doing any extra form-wide cleaning after Field.clean() been called on every field.
source code

Inherited from django.forms.models.BaseModelForm: save, validate_unique

Inherited from django.forms.models.BaseModelForm (private): _get_validation_exclusions, _post_clean, _update_errors

Inherited from django.forms.forms.BaseForm: __getitem__, __iter__, __unicode__, add_initial_prefix, add_prefix, as_p, as_table, as_ul, 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, _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]
  _meta = <django.forms.models.ModelFormOptions object at 0x8f57...
  base_fields = {'requested_role': <django.forms.models.ModelCho...
  declared_fields = {}
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, roles_qs, roles_to_users, *args, **kwargs)
(Constructor)

source code 

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

Parameters:
  • roles_qs - queryset of allowed roles
  • roles_to_users - dict mapping each role in roles_qs to a set of users
Overrides: object.__init__

clean(self)

source code 

Hook for doing any extra form-wide cleaning after Field.clean() 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__'.

Overrides: django.forms.forms.BaseForm.clean
(inherited documentation)

Class Variable Details [hide private]

_meta

Value:
<django.forms.models.ModelFormOptions object at 0x8f579cc>

base_fields

Value:
{'requested_role': <django.forms.models.ModelChoiceField object at 0x8\
f57c8c>, 'giver': <django.forms.models.ModelChoiceField object at 0x8f\
57f8c>, 'message': <django.forms.fields.CharField object at 0x8f6120c>\
}

Property Details [hide private]

media

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

Get Method:
unreachable._media(self)