org.views.people

Functions

view_people(→ onegov.core.types.RenderData)

view_person(→ onegov.core.types.RenderData)

person_functions_by_organization(→ Iterable[Markup])

Collects 1:1 mappings of all context-specific functions and

handle_new_person(→ RenderData | BaseResponse)

handle_edit_person(→ RenderData | BaseResponse)

handle_delete_person(→ None)

vcard_export_person(→ morepath.request.Response)

Returns the persons vCard.

Module Contents

org.views.people.view_people(self: onegov.people.PersonCollection, request: onegov.org.request.OrgRequest, layout: onegov.org.layout.PersonCollectionLayout | None = None) onegov.core.types.RenderData[source]
org.views.people.view_person(self: onegov.people.Person, request: onegov.org.request.OrgRequest, layout: onegov.org.layout.PersonLayout | None = None) onegov.core.types.RenderData[source]
org.views.people.person_functions_by_organization(subject_person: onegov.people.Person, topics: Iterable[Topic], request: onegov.org.request.OrgRequest) Iterable[Markup][source]
Collects 1:1 mappings of all context-specific functions and

organizations for a person. Organizations are pages where subject_person is listed as a person.

Returns an Iterable of Markup in the form:

  • Organization 1: Function A

  • Organization 2: Function B

This is not necessarily the same as person.function!

org.views.people.handle_new_person(self: onegov.people.PersonCollection, request: onegov.org.request.OrgRequest, form: onegov.org.forms.PersonForm, layout: onegov.org.layout.PersonCollectionLayout | None = None) RenderData | BaseResponse[source]
org.views.people.handle_edit_person(self: onegov.people.Person, request: onegov.org.request.OrgRequest, form: onegov.org.forms.PersonForm, layout: onegov.org.layout.PersonLayout | None = None) RenderData | BaseResponse[source]
org.views.people.handle_delete_person(self: onegov.people.Person, request: onegov.org.request.OrgRequest) None[source]
org.views.people.vcard_export_person(self: onegov.people.Person, request: onegov.org.request.OrgRequest) morepath.request.Response[source]

Returns the persons vCard.