gazette.forms.notice

Classes

NoticeForm

Edit an official notice.

UnrestrictedNoticeForm

Edit an official notice without limitations on the issues, categories

Module Contents

class gazette.forms.notice.NoticeForm(formdata: MultiDict[str, Any] | None = None, obj: object | None = None, prefix: str = '', data: dict[str, Any] | None = None, meta: dict[str, Any] | None = None, *, extra_filters: Mapping[str, Sequence[Any]] | None = None, **kwargs: Any)[source]

Bases: onegov.form.Form

Edit an official notice.

The issues are limited according to the deadline (or the issue date in the for publishers) and the categories and organizations are limited to the active one.

request: onegov.gazette.request.GazetteRequest[source]
title[source]
organization[source]
category[source]
print_only[source]
at_cost[source]
billing_address[source]
issues[source]
text[source]
author_place[source]
author_date[source]
phone_number[source]
author_name[source]
property author_date_utc: datetime.datetime | None[source]
on_request() None[source]
update_model(model: onegov.gazette.models.GazetteNotice) None[source]
apply_model(model: onegov.gazette.models.GazetteNotice) None[source]
class gazette.forms.notice.UnrestrictedNoticeForm(formdata: MultiDict[str, Any] | None = None, obj: object | None = None, prefix: str = '', data: dict[str, Any] | None = None, meta: dict[str, Any] | None = None, *, extra_filters: Mapping[str, Sequence[Any]] | None = None, **kwargs: Any)[source]

Bases: NoticeForm

Edit an official notice without limitations on the issues, categories and organiaztions.

Optionally disables the issues (e.g. if the notice is already published).

note[source]
on_request() None[source]
disable_issues() None[source]
update_model(model: onegov.gazette.models.GazetteNotice) None[source]
apply_model(model: onegov.gazette.models.GazetteNotice) None[source]