org.forms.form_registration

Classes

FormRegistrationMessageForm

FormRegistrationWindowForm

Form to edit registration windows.

Module Contents

class org.forms.form_registration.FormRegistrationMessageForm[source]

Bases: onegov.form.Form

message[source]
registration_state[source]
ensure_receivers() → bool | None[source]
property receivers: dict[str, onegov.form.FormSubmission][source]
class org.forms.form_registration.FormRegistrationWindowForm[source]

Bases: onegov.form.Form

Form to edit registration windows.

model: onegov.form.FormDefinition | onegov.form.FormRegistrationWindow[source]
start[source]
end[source]
limit_attendees[source]
limit[source]
waitinglist[source]
stop[source]
process_obj(obj: onegov.form.FormRegistrationWindow) → None[source]
populate_obj(obj: onegov.form.FormRegistrationWindow, *args: Any, **kwargs: Any) → None[source]
property claimed_spots: int[source]
property requested_spots: int[source]
ensure_start_before_end() → bool | None[source]

Validate start and end for proper error message. def ensure_start_end(self) would also be run in side the validate function, but the error is not clear.

ensure_no_overlapping_windows() → bool | None[source]

Ensure that this registration window does not overlap with other already defined registration windows.

validate_limit(field: wtforms.fields.IntegerField) → None[source]