org.forms.survey_submission

Classes

SurveySubmissionWindowForm

Form to edit submission windows.

Module Contents

class org.forms.survey_submission.SurveySubmissionWindowForm[source]

Bases: onegov.form.Form

Form to edit submission windows.

model: onegov.form.SurveyDefinition | onegov.form.SurveySubmissionWindow[source]
title[source]
start[source]
end[source]
process_obj(obj: onegov.form.SurveySubmissionWindow) → None[source]
populate_obj(obj: onegov.form.SurveySubmissionWindow, *args: Any, **kwargs: Any) → None[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_unique_title() → bool | None[source]

Ensure that the title is unique within the survey.

ensure_no_overlapping_windows() → bool | None[source]

Ensure that this registration window does not overlap with other already defined registration windows unless they have a title.