gazette.views.notices

Functions

create_notice(→ RenderData | BaseResponse)

Create a new notice.

view_notices(→ onegov.core.types.RenderData)

View the list of notices.

view_notices_statistics(→ onegov.core.types.RenderData)

View the list of notices.

view_notices_statistics_xlsx(→ morepath.request.Response)

View the statistics as XLSX.

view_notices_preview_pdf(→ morepath.request.Response)

Preview the notices as PDF.

view_notices_index(→ morepath.request.Response)

Export the index to the notices as PDF.

view_notices_update(→ RenderData | BaseResponse)

Updates all notices (of this state): Applies the categories, issues and

Module Contents

gazette.views.notices.create_notice(self: onegov.gazette.collections.GazetteNoticeCollection, request: onegov.gazette.request.GazetteRequest, form: onegov.gazette.forms.NoticeForm) RenderData | BaseResponse[source]

Create a new notice.

If a valid UID of a notice is given (via ‘source’ query parameter), its values are pre-filled in the form.

This view is mainly used by the editors.

gazette.views.notices.view_notices(self: onegov.gazette.collections.GazetteNoticeCollection, request: onegov.gazette.request.GazetteRequest) onegov.core.types.RenderData[source]

View the list of notices.

This view is only visible by a publisher. This (in the state ‘accepted’) is the view used by the publisher.

gazette.views.notices.view_notices_statistics(self: onegov.gazette.collections.GazetteNoticeCollection, request: onegov.gazette.request.GazetteRequest) onegov.core.types.RenderData[source]

View the list of notices.

This view is only visible by a publisher. This (in the state ‘accepted’) is the view used by the publisher.

gazette.views.notices.view_notices_statistics_xlsx(self: onegov.gazette.collections.GazetteNoticeCollection, request: onegov.gazette.request.GazetteRequest) morepath.request.Response[source]

View the statistics as XLSX.

gazette.views.notices.view_notices_preview_pdf(self: onegov.gazette.collections.GazetteNoticeCollection, request: onegov.gazette.request.GazetteRequest) morepath.request.Response[source]

Preview the notices as PDF.

This view is only visible by a publisher.

gazette.views.notices.view_notices_index(self: onegov.gazette.collections.GazetteNoticeCollection, request: onegov.gazette.request.GazetteRequest) morepath.request.Response[source]

Export the index to the notices as PDF.

This view is only visible by a publisher.

gazette.views.notices.view_notices_update(self: onegov.gazette.collections.GazetteNoticeCollection, request: onegov.gazette.request.GazetteRequest, form: onegov.gazette.forms.EmptyForm) RenderData | BaseResponse[source]

Updates all notices (of this state): Applies the categories, issues and organization from the meta informations. This view is not used normally and only intended when changing category names in the principal definition, for example.