form.utils

Attributes

_unwanted_characters

_html_tags

original_html_params

Classes

decimal_range

Implementation of Python's range builtin using decimal values instead

Functions

as_internal_id(→ str)

get_fields_from_class(→ list[tuple[str, ...)

extract_text_from_html(→ str)

disable_required_attribute_in_html_inputs(→ None)

Replaces the required attribute with aria-required.

hash_definition(→ str)

path_to_filename(…)

remove_empty_links(→ str)

Module Contents

form.utils._unwanted_characters[source]
form.utils._html_tags[source]
form.utils.original_html_params[source]
form.utils.as_internal_id(label: str) str[source]
form.utils.get_fields_from_class(cls: type[onegov.form.Form]) list[tuple[str, UnboundField[Any]]][source]
form.utils.extract_text_from_html(html: str) str[source]
form.utils.disable_required_attribute_in_html_inputs() None[source]

Replaces the required attribute with aria-required.

class form.utils.decimal_range(start: float | decimal.Decimal, stop: float | decimal.Decimal, step: str | float | decimal.Decimal | None = None)[source]

Implementation of Python’s range builtin using decimal values instead of integers.

__slots__ = ('start', 'stop', 'step', 'current')[source]
stop[source]
step[source]
__repr__() str[source]
__eq__(other: object) bool[source]
__iter__() Self[source]
__next__() decimal.Decimal[source]
form.utils.hash_definition(definition: str) str[source]
form.utils.path_to_filename(path: None) None[source]
form.utils.path_to_filename(path: str) str