bip.user package¶
Submodules¶
bip.user.forms module¶
-
class
bip.user.forms.
ChangePasswordForm
(*args, **kwargs)¶ Klasy bazowe:
bip.utils.forms.BaseForm
- Parametry
formdata – Used to pass data coming from the enduser, usually request.POST or equivalent. formdata should be some sort of request-data wrapper which can get multiple parameters from the form input, and values are unicode strings, e.g. a Werkzeug/Django/WebOb MultiDict
obj – If formdata is empty or not provided, this object is checked for attributes matching form field names, which will be used for field values.
prefix – If provided, all fields will have their name prefixed with the value.
data – Accept a dictionary of data. This is only used if formdata and obj are not present.
meta – If provided, this is a dictionary of values to override attributes on this form’s meta instance.
**kwargs – If formdata is empty or not provided and obj does not contain an attribute named the same as a field, form will assign the value of a matching keyword argument to the field, if one exists.
-
save
(user: bip.models.User)¶
-
new_password
= <UnboundField(PasswordField, ('nowe hasło',), {'validators': [<wtforms.validators.InputRequired object>]})>¶
-
new_password_repeat
= <UnboundField(PasswordField, ('nowe hasło (powtórz)',), {'validators': [<wtforms.validators.InputRequired object>, <wtforms.validators.EqualTo object>]})>¶
-
class
bip.user.forms.
ProfileForm
(*args, **kwargs)¶ Klasy bazowe:
bip.utils.forms.ObjectForm
- Parametry
formdata – Used to pass data coming from the enduser, usually request.POST or equivalent. formdata should be some sort of request-data wrapper which can get multiple parameters from the form input, and values are unicode strings, e.g. a Werkzeug/Django/WebOb MultiDict
obj – If formdata is empty or not provided, this object is checked for attributes matching form field names, which will be used for field values.
prefix – If provided, all fields will have their name prefixed with the value.
data – Accept a dictionary of data. This is only used if formdata and obj are not present.
meta – If provided, this is a dictionary of values to override attributes on this form’s meta instance.
**kwargs – If formdata is empty or not provided and obj does not contain an attribute named the same as a field, form will assign the value of a matching keyword argument to the field, if one exists.
-
email
= <UnboundField(EmailField, ('email',), {'validators': [<bip.utils.forms.EmailValidator object>]})>¶