apptools.persistence.version_registry module¶
A version registry that manages handlers for different state versions.
- class apptools.persistence.version_registry.HandlerRegistry[source]¶
Bases:
object
A simple version conversion handler registry. Classes register handlers in order to convert the state version to the latest version. When an object’s state is about to be set, the update method of the registy is called. This in turn calls any handlers registered for the class/module and this handler is then called with the state and the version of the state. The state is modified in-place by the handlers.