rattail.upgrades
¶
Upgrade handlers
- class rattail.upgrades.UpgradeHandler(*args, **kwargs)[source]¶
Base class and default implementation for upgrade handlers.
- do_execute(upgrade, user, **kwargs)[source]¶
Perform all steps needed to fully execute the given upgrade.
Callers should use this method; you can override
execute()
to customize execution logic.
- executable(upgrade)[source]¶
This method should return a boolean indicating whether or not execution should be allowed for the upgrade, given its current condition. The default simply returns
True
unless the upgrade has already been executed.