pas.forms.parliamentarian ========================= .. py:module:: pas.forms.parliamentarian Classes ------- .. autoapisummary:: pas.forms.parliamentarian.ParliamentarianForm Module Contents --------------- .. py:class:: ParliamentarianForm(formdata: webob.multidict.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: collections.abc.Mapping[str, collections.abc.Sequence[Any]] | None = None, **kwargs: Any) Bases: :py:obj:`onegov.form.forms.NamedFileForm` Base class for handling database models using named files with forms. Example:: class MyModel(AssociatedFiles): pdf = NamedFile() class MyForm(NamedFileForm): pdf = UploadField('PDF') @MyApp.form(model=MyCollection, form=MyForm, ...) def add(self, request, form): if form.submitted(request): self.add(**form.get_useful_data()) ... ... @MyApp.form(model=MyModel, form=MyForm, ...) def edit(self, request, form): if form.submitted(request): form.populate_obj(self) ... form.process(obj=self) ... .. py:attribute:: personnel_number .. py:attribute:: contract_number .. py:attribute:: gender .. py:attribute:: first_name .. py:attribute:: last_name .. py:attribute:: picture .. py:attribute:: shipping_method .. py:attribute:: shipping_address .. py:attribute:: shipping_address_addition .. py:attribute:: shipping_address_zip_code .. py:attribute:: shipping_address_city .. py:attribute:: private_address .. py:attribute:: private_address_addition .. py:attribute:: private_address_zip_code .. py:attribute:: private_address_city .. py:attribute:: date_of_birth .. py:attribute:: date_of_death .. py:attribute:: place_of_origin .. py:attribute:: occupation .. py:attribute:: academic_title .. py:attribute:: salutation .. py:attribute:: salutation_for_address .. py:attribute:: salutation_for_letter .. py:attribute:: forwarding_of_bills .. py:attribute:: phone_private .. py:attribute:: phone_mobile .. py:attribute:: phone_business .. py:attribute:: email_primary .. py:attribute:: email_secondary .. py:attribute:: website .. py:attribute:: remarks