agency.views.people

Classes

FilterOption

Functions

get_person_form_class(→ type[onegov.org.forms.PersonForm])

view_people(→ onegov.core.types.RenderData)

create_people_xlsx(→ RenderData | BaseResponse)

get_people_xlsx(→ morepath.request.Response)

view_person(→ onegov.core.types.RenderData)

view_sort_person(→ onegov.core.types.RenderData)

add_person(→ RenderData | BaseResponse)

edit_person(→ RenderData | BaseResponse)

handle_delete_person(→ None)

do_report_person_change(→ onegov.ticket.Ticket)

report_person_change(→ RenderData | BaseResponse)

Module Contents

class agency.views.people.FilterOption[source]

Bases: NamedTuple

title: str[source]
value: str[source]
selected: bool[source]
agency.views.people.get_person_form_class(model: object, request: onegov.agency.request.AgencyRequest) type[onegov.org.forms.PersonForm][source]
agency.views.people.view_people(self: onegov.agency.collections.ExtendedPersonCollection, request: onegov.agency.request.AgencyRequest) onegov.core.types.RenderData[source]
agency.views.people.create_people_xlsx(self: onegov.agency.collections.ExtendedPersonCollection, request: onegov.agency.request.AgencyRequest, form: onegov.form.Form) RenderData | BaseResponse[source]
agency.views.people.get_people_xlsx(self: onegov.agency.collections.ExtendedPersonCollection, request: onegov.agency.request.AgencyRequest) morepath.request.Response[source]
agency.views.people.view_person(self: onegov.agency.models.ExtendedPerson, request: onegov.agency.request.AgencyRequest) onegov.core.types.RenderData[source]
agency.views.people.view_sort_person(self: onegov.agency.models.ExtendedPerson, request: onegov.agency.request.AgencyRequest) onegov.core.types.RenderData[source]
agency.views.people.add_person(self: onegov.agency.collections.ExtendedPersonCollection, request: onegov.agency.request.AgencyRequest, form: onegov.org.forms.PersonForm) RenderData | BaseResponse[source]
agency.views.people.edit_person(self: onegov.agency.models.ExtendedPerson, request: onegov.agency.request.AgencyRequest, form: onegov.org.forms.PersonForm) RenderData | BaseResponse[source]
agency.views.people.handle_delete_person(self: onegov.agency.models.ExtendedPerson, request: onegov.agency.request.AgencyRequest) None[source]
agency.views.people.do_report_person_change(self: onegov.agency.models.ExtendedPerson, request: onegov.agency.request.AgencyRequest, form: onegov.agency.forms.PersonMutationForm) onegov.ticket.Ticket[source]
agency.views.people.report_person_change(self: onegov.agency.models.ExtendedPerson, request: onegov.agency.request.AgencyRequest, form: onegov.agency.forms.PersonMutationForm) RenderData | BaseResponse[source]