State machine inheritance allows for a superclass to define the states, then you can define custom events per subclass. This is especially useful with SQLAlchemy's polymorphic models.
get_next_events allows for really simple handling of more complex state trees, without lots of if/else trees in frontend code to handle the different states
State machine inheritance allows for a superclass to define the states, then you can define custom events per subclass. This is especially useful with SQLAlchemy's polymorphic models.
get_next_events allows for really simple handling of more complex state trees, without lots of if/else trees in frontend code to handle the different states