gazette.views.principal

Functions

view_principal(→ webob.Response)

The homepage.

view_archive(→ onegov.core.types.RenderData)

The archive.

view_dashboard(→ onegov.core.types.RenderData)

The dashboard view (for editors).

Module Contents

gazette.views.principal.view_principal(self: onegov.gazette.models.Principal, request: onegov.gazette.request.GazetteRequest) webob.Response[source]

The homepage.

Redirects to the default management views according to the logged in role.

Shows the weekly PDFs if not logged-in.

gazette.views.principal.view_archive(self: onegov.gazette.models.Principal, request: onegov.gazette.request.GazetteRequest) onegov.core.types.RenderData[source]

The archive.

Shows all the weekly PDFs by year.

gazette.views.principal.view_dashboard(self: onegov.gazette.models.Principal, request: onegov.gazette.request.GazetteRequest) onegov.core.types.RenderData[source]

The dashboard view (for editors).

Shows the drafted, submitted and rejected notices, shows warnings and allows to create a new notice.