gazette.forms.notice ==================== .. py:module:: gazette.forms.notice Classes ------- .. autoapisummary:: gazette.forms.notice.NoticeForm gazette.forms.notice.UnrestrictedNoticeForm Module Contents --------------- .. py:class:: NoticeForm(formdata: webob.multidict.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: collections.abc.Mapping[str, collections.abc.Sequence[Any]] | None = None, **kwargs: Any) Bases: :py:obj:`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. .. py:attribute:: request :type: onegov.gazette.request.GazetteRequest .. py:attribute:: title .. py:attribute:: organization .. py:attribute:: category .. py:attribute:: print_only .. py:attribute:: at_cost .. py:attribute:: billing_address .. py:attribute:: issues .. py:attribute:: text .. py:attribute:: author_place .. py:attribute:: author_date .. py:attribute:: phone_number .. py:attribute:: author_name .. py:property:: author_date_utc :type: datetime.datetime | None .. py:method:: on_request() -> None .. py:method:: update_model(model: onegov.gazette.models.GazetteNotice) -> None .. py:method:: apply_model(model: onegov.gazette.models.GazetteNotice) -> None .. py:class:: UnrestrictedNoticeForm(formdata: webob.multidict.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: collections.abc.Mapping[str, collections.abc.Sequence[Any]] | None = None, **kwargs: Any) Bases: :py:obj:`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). .. py:attribute:: note .. py:method:: on_request() -> None .. py:method:: disable_issues() -> None .. py:method:: update_model(model: onegov.gazette.models.GazetteNotice) -> None .. py:method:: apply_model(model: onegov.gazette.models.GazetteNotice) -> None