agency.views.people =================== .. py:module:: agency.views.people Classes ------- .. autoapisummary:: agency.views.people.FilterOption Functions --------- .. autoapisummary:: agency.views.people.get_person_form_class agency.views.people.view_people agency.views.people.create_people_xlsx agency.views.people.get_people_xlsx agency.views.people.view_person agency.views.people.view_sort_person agency.views.people.add_person agency.views.people.edit_person agency.views.people.handle_delete_person agency.views.people.do_report_person_change agency.views.people.report_person_change Module Contents --------------- .. py:class:: FilterOption Bases: :py:obj:`NamedTuple` .. py:attribute:: title :type: str .. py:attribute:: value :type: str .. py:attribute:: selected :type: bool .. py:function:: get_person_form_class(model: object, request: onegov.agency.request.AgencyRequest) -> type[onegov.agency.forms.person.AgencyPersonForm] .. py:function:: view_people(self: onegov.agency.collections.ExtendedPersonCollection, request: onegov.agency.request.AgencyRequest) -> onegov.core.types.RenderData .. py:function:: create_people_xlsx(self: onegov.agency.collections.ExtendedPersonCollection, request: onegov.agency.request.AgencyRequest, form: onegov.form.Form) -> onegov.core.types.RenderData | webob.Response .. py:function:: get_people_xlsx(self: onegov.agency.collections.ExtendedPersonCollection, request: onegov.agency.request.AgencyRequest) -> morepath.request.Response .. py:function:: view_person(self: onegov.agency.models.ExtendedPerson, request: onegov.agency.request.AgencyRequest) -> onegov.core.types.RenderData .. py:function:: view_sort_person(self: onegov.agency.models.ExtendedPerson, request: onegov.agency.request.AgencyRequest) -> onegov.core.types.RenderData .. py:function:: add_person(self: onegov.agency.collections.ExtendedPersonCollection, request: onegov.agency.request.AgencyRequest, form: onegov.agency.forms.person.AgencyPersonForm) -> onegov.core.types.RenderData | webob.Response .. py:function:: edit_person(self: onegov.agency.models.ExtendedPerson, request: onegov.agency.request.AgencyRequest, form: onegov.agency.forms.person.AgencyPersonForm) -> onegov.core.types.RenderData | webob.Response .. py:function:: handle_delete_person(self: onegov.agency.models.ExtendedPerson, request: onegov.agency.request.AgencyRequest) -> None .. py:function:: do_report_person_change(self: onegov.agency.models.ExtendedPerson, request: onegov.agency.request.AgencyRequest, form: onegov.agency.forms.PersonMutationForm | onegov.agency.forms.person.AuthenticatedPersonMutationForm) -> onegov.ticket.Ticket .. py:function:: report_person_change(self: onegov.agency.models.ExtendedPerson, request: onegov.agency.request.AgencyRequest, form: onegov.agency.forms.PersonMutationForm) -> onegov.core.types.RenderData | webob.Response