stepsequence.core
Attributes
Exceptions
Common base class for all non-exit exceptions. |
Classes
Functions
|
Module Contents
- exception stepsequence.core.DuplicatedStepError[source]
Bases:
Exception
Common base class for all non-exit exceptions.
- stepsequence.core.as_step_registry_id(cls_name: str, position: int, cls_before: str | None = None, cls_after: str | None = None) str [source]
- class stepsequence.core.Step(title: int | str, origin: str, position: int, cls_after: str | None = None, cls_before: str | None = None)[source]
- class stepsequence.core.StepSequenceRegistry[source]
- registry: dict[str, StepCollection][source]
- get(step_id: str | None = None, cls_name: str | None = None, position: int | None = None) Step | None [source]
- register(cls_name: str, position: int, title: str | None = None, cls_before: str | None = None, cls_after: str | None = None) Step [source]
Registers a step by its position, and the class names that come before and after.
- registered_step(position: int, title: str | None = None, cls_before: str | None = None, cls_after: str | None = None) Callable[[type[_T]], type[_T]] [source]
A decorator to register part of a full step sequence.
Use as follows:
@step_sequences.registered_step( 1, _('Confirm'), cls_after='FormSubmission') class MyDBModel(Base, StepsExtension): pass