gazette.views.issues ==================== .. py:module:: gazette.views.issues Functions --------- .. autoapisummary:: gazette.views.issues.view_issues gazette.views.issues.create_issue gazette.views.issues.edit_issue gazette.views.issues.delete_issue gazette.views.issues.publish_issue gazette.views.issues.print_only_pdf gazette.views.issues.export_issue Module Contents --------------- .. py:function:: view_issues(self: onegov.gazette.collections.IssueCollection, request: onegov.gazette.request.GazetteRequest) -> onegov.core.types.RenderData View the list of issues. This view is only visible by a publisher. .. py:function:: create_issue(self: onegov.gazette.collections.IssueCollection, request: onegov.gazette.request.GazetteRequest, form: onegov.gazette.forms.IssueForm) -> onegov.core.types.RenderData | webob.Response Create a new issue. This view is only visible by a publisher. .. py:function:: edit_issue(self: onegov.gazette.models.Issue, request: onegov.gazette.request.GazetteRequest, form: onegov.gazette.forms.IssueForm) -> onegov.core.types.RenderData | webob.Response Edit a issue. This view is only visible by a publisher. .. py:function:: delete_issue(self: onegov.gazette.models.Issue, request: onegov.gazette.request.GazetteRequest, form: onegov.gazette.forms.EmptyForm) -> onegov.core.types.RenderData | webob.Response Delete a issue. Only unused issues may be deleted. This view is only visible by a publisher. .. py:function:: publish_issue(self: onegov.gazette.models.Issue, request: onegov.gazette.request.GazetteRequest, form: onegov.gazette.forms.EmptyForm) -> onegov.core.types.RenderData | webob.Response Publish an issue. This moves all accepted notices related to this issue to the published state (if not already) and generates the PDF. The publication numbers are assigned during PDF creation. This view is only visible by a publisher. .. py:function:: print_only_pdf(self: onegov.gazette.models.Issue, request: onegov.gazette.request.GazetteRequest) -> morepath.request.Response Creates the PDF with all the print only notices of an issue. .. py:function:: export_issue(self: onegov.gazette.collections.IssueCollection, request: onegov.gazette.request.GazetteRequest) -> morepath.request.Response Export all issues as XLSX. The exported file can be re-imported using the import-issues command line command.