org.forms.page
Classes
Defines the base form for all pages. |
|
Defines the form for pages with the 'link' trait. |
|
Defines the form for pages with the 'page' trait. |
|
Defines the form for pages with the 'iframe' trait. |
|
Form to move a page including its subpages. |
Functions
|
Module Contents
- class org.forms.page.PageBaseForm[source]
Bases:
onegov.form.FormDefines the base form for all pages.
- class org.forms.page.LinkForm[source]
Bases:
PageBaseFormDefines the form for pages with the ‘link’ trait.
- class org.forms.page.PageForm[source]
Bases:
PageBaseFormDefines the form for pages with the ‘page’ trait.
- class org.forms.page.IframeForm[source]
Bases:
PageBaseFormDefines the form for pages with the ‘iframe’ trait.
- validate_url(field: onegov.form.fields.URLField) None[source]
Validates the URL against the iFrame allow-list.
This implements only a subset of CSP source matching: the scheme (an
httpsource also allowshttps, an empty scheme allows any) and the host (with wildcard support, e.g.*.vimeo.com). Ports and paths on the allow-list entries are not honoured.
- class org.forms.page.PageUrlForm[source]
Bases:
onegov.org.forms.generic.ChangeAdjacencyListUrlForm
- org.forms.page.parent_choices(form: MovePageForm, field: onegov.form.fields.ChosenSelectField) list[wtforms.fields.SelectChoice][source]
- class org.forms.page.MovePageForm[source]
Bases:
onegov.form.FormForm to move a page including its subpages.
- iterate_page_tree(pages: collections.abc.Iterable[onegov.page.Page], indent: str = '') collections.abc.Iterator[wtforms.fields.SelectChoice][source]
Iterates over the page tree and lists the elements with ident to show the page hierarchy in the choices list