ChangeLog¶
1.0.3 (2014-01-29)¶
Bugfix:
- Allow setting the current state of a
WorkflowEnabled
instance from a state’s name- Ensure
states
behaves as a proper mapping
1.0.0 (2013-04-29)¶
Bugfix:
- Fix hook registration on custom implementations while inheriting
WorkflowEnabled
.
New:
- Add support for Python 2.6 to 3.2
Backward incompatible:
- The string representation of
State
andStateWrapper
now reflects the state’s name, as does theirunicode()
representation in Python 2.X.
0.4.0 (2012-08-02)¶
New:
- Improve support for transition hooks, with the
xworkflows.before_transition()
,xworkflows.after_transition()
,xworkflows.transition_check()
,xworkflows.on_enter_state()
andxworkflows.on_leave_state()
decorators.
Bugfix:
- Fix support for inheritance of
xworkflows.WorkflowEnabled
objects.
Deprecated:
- Use of the
check=
,before=
,after=
keyword arguments in the@transition
decorator is now deprecated; use@before_transition
,@after_transition
and@transition_check
instead. Support for old keyword arguments will be removed in 0.5.0.
Backward incompatible:
- The (private)
ImplementationWrapper
class no longer accepts thecheck
,before
,after
arguments (usehooks
instead)
0.3.2 (2012-06-05)¶
Bugfix:
- Fix transition logging for objects whose __repr__ doesn’t convert to unicode.
0.3.0 (2012-04-30)¶
New:
- Allow and document customization of the
ImplementationWrapper
- Add a method to check whether a transition is available from the current instance
- Cleanup
ImplementationList
and improve its documentation