gazette.views.notices
Functions
|
Create a new notice. |
|
View the list of notices. |
|
View the list of notices. |
|
View the statistics as XLSX. |
|
Preview the notices as PDF. |
|
Export the index to the notices as PDF. |
|
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.