stepsequence.extension

Module Contents

Classes

StepsModelExtension

Can serve as Model Extension. However, if you need some

StepsLayoutExtension

For steps registered on layouts.

class stepsequence.extension.StepsModelExtension[source]

Can serve as Model Extension. However, if you need some translations, is better to register steps on layouts that have access to the model.

property step_position: int | None[source]

Can be overwritten by the model and based on its attributes.

get_step_sequence(position: int | None = None) list[onegov.stepsequence.core.Step][source]
classmethod registered_steps() onegov.stepsequence.core.StepCollection[source]
class stepsequence.extension.StepsLayoutExtension(*args: Any, hide_steps: bool = False, **kwargs: Any)[source]

For steps registered on layouts.

abstract property step_position: int | None[source]

Can be overwritten by the model and based request params.

registered_steps() onegov.stepsequence.core.StepCollection[source]
get_step_sequence(position: int | None = None) list[onegov.stepsequence.core.Step][source]

Retrieve the full step sequence for the current model. If the latter has multiple steps registered, you must provide the position or a ValueError gets raised.