onboarding.models.town_assistant

Attributes

_valid_subdomain

Classes

TownAssistant

An assistant guiding a user through onegov.town6 onboarding.

Module Contents

onboarding.models.town_assistant._valid_subdomain[source]
class onboarding.models.town_assistant.TownAssistant(app: onegov.onboarding.app.OnboardingApp, current_step_number: int = 1)[source]

Bases: onegov.onboarding.models.assistant.Assistant

An assistant guiding a user through onegov.town6 onboarding.

first_step(request: onegov.core.request.CoreRequest, form: onegov.onboarding.forms.TownForm) RenderData | Response[source]
last_step(request: onegov.core.request.CoreRequest, form: onegov.onboarding.forms.FinishForm) RenderData | Response[source]
property config: dict[str, Any][source]
get_subdomain(name: str) str[source]
get_domain(name: str) str[source]
get_schema(name: str) str[source]
add_town(name: str, user: str, color: str, request: onegov.core.request.CoreRequest) onegov.core.types.RenderData[source]