gazette.views.organizations

Functions

view_organizations(→ onegov.core.types.RenderData)

View the list of organizations.

view_organizations_order(→ onegov.core.types.RenderData)

Reorder the list of organizations.

move_organization(→ None)

create_organization(→ RenderData | BaseResponse)

Create a new organization.

edit_organization(→ RenderData | BaseResponse)

Edit a organization.

delete_organization(→ RenderData | BaseResponse)

Delete a organization.

export_organizations(→ morepath.request.Response)

Export all organizations as XLSX. The exported file can be re-imported

Module Contents

gazette.views.organizations.view_organizations(self: onegov.gazette.collections.OrganizationCollection, request: onegov.gazette.request.GazetteRequest) onegov.core.types.RenderData[source]

View the list of organizations.

This view is only visible by a publisher.

gazette.views.organizations.view_organizations_order(self: onegov.gazette.collections.OrganizationCollection, request: onegov.gazette.request.GazetteRequest) onegov.core.types.RenderData[source]

Reorder the list of organizations.

This view is only visible by a publisher.

gazette.views.organizations.move_organization(self: onegov.gazette.models.OrganizationMove, request: onegov.gazette.request.GazetteRequest) None[source]
gazette.views.organizations.create_organization(self: onegov.gazette.collections.OrganizationCollection, request: onegov.gazette.request.GazetteRequest, form: onegov.gazette.forms.OrganizationForm) RenderData | BaseResponse[source]

Create a new organization.

This view is only visible by a publisher.

gazette.views.organizations.edit_organization(self: onegov.gazette.models.Organization, request: onegov.gazette.request.GazetteRequest, form: onegov.gazette.forms.OrganizationForm) RenderData | BaseResponse[source]

Edit a organization.

This view is only visible by a publisher.

gazette.views.organizations.delete_organization(self: onegov.gazette.models.Organization, request: onegov.gazette.request.GazetteRequest, form: onegov.gazette.forms.EmptyForm) RenderData | BaseResponse[source]

Delete a organization.

Only unused organizations may be deleted.

gazette.views.organizations.export_organizations(self: onegov.gazette.collections.OrganizationCollection, request: onegov.gazette.request.GazetteRequest) morepath.request.Response[source]

Export all organizations as XLSX. The exported file can be re-imported using the import-organizations command line command.