gazette.views.organizations =========================== .. py:module:: gazette.views.organizations Functions --------- .. autoapisummary:: gazette.views.organizations.view_organizations gazette.views.organizations.view_organizations_order gazette.views.organizations.move_organization gazette.views.organizations.create_organization gazette.views.organizations.edit_organization gazette.views.organizations.delete_organization gazette.views.organizations.export_organizations Module Contents --------------- .. py:function:: view_organizations(self: onegov.gazette.collections.OrganizationCollection, request: onegov.gazette.request.GazetteRequest) -> onegov.core.types.RenderData View the list of organizations. This view is only visible by a publisher. .. py:function:: view_organizations_order(self: onegov.gazette.collections.OrganizationCollection, request: onegov.gazette.request.GazetteRequest) -> onegov.core.types.RenderData Reorder the list of organizations. This view is only visible by a publisher. .. py:function:: move_organization(self: onegov.gazette.models.OrganizationMove, request: onegov.gazette.request.GazetteRequest) -> None .. py:function:: create_organization(self: onegov.gazette.collections.OrganizationCollection, request: onegov.gazette.request.GazetteRequest, form: onegov.gazette.forms.OrganizationForm) -> onegov.core.types.RenderData | webob.Response Create a new organization. This view is only visible by a publisher. .. py:function:: edit_organization(self: onegov.gazette.models.Organization, request: onegov.gazette.request.GazetteRequest, form: onegov.gazette.forms.OrganizationForm) -> onegov.core.types.RenderData | webob.Response Edit a organization. This view is only visible by a publisher. .. py:function:: delete_organization(self: onegov.gazette.models.Organization, request: onegov.gazette.request.GazetteRequest, form: onegov.gazette.forms.EmptyForm) -> onegov.core.types.RenderData | webob.Response Delete a organization. Only unused organizations may be deleted. .. py:function:: export_organizations(self: onegov.gazette.collections.OrganizationCollection, request: onegov.gazette.request.GazetteRequest) -> morepath.request.Response Export all organizations as XLSX. The exported file can be re-imported using the import-organizations command line command.