gazette.views.organizations
Functions
|
View the list of organizations. |
|
Reorder the list of organizations. |
|
|
|
Create a new organization. |
|
Edit a organization. |
|
Delete a organization. |
|
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.