org.forms.userprofile

Module Contents

Classes

UserProfileForm

Defines the settings form for user profiles.

class org.forms.userprofile.UserProfileForm(formdata: MultiDict[str, Any] | None = None, obj: object | None = None, prefix: str = '', data: dict[str, Any] | None = None, meta: dict[str, Any] | None = None, *, extra_filters: Mapping[str, Sequence[Any]] | None = None, **kwargs: Any)[source]

Bases: onegov.form.Form

Defines the settings form for user profiles.

property enable_ticket_statistics: bool[source]
ticket_statistics[source]
on_request() None[source]
populate_obj(obj: onegov.user.User) None[source]

A reimplementation of wtforms populate_obj function with the addage of optional include/exclude filters.

If neither exclude nor include is passed, the function works like it does in wtforms. Otherwise fields are considered which are included but not excluded.

process_obj(obj: onegov.user.User) None[source]

Called by process() if an object was passed.

Do not use this function directly. To process an object, you should call form.process(obj=obj) instead.