Module v.c.a.upgrade

Part of vmc.contrib.axiom

No module docstring
Function registerUpgrader Register a callable which can perform a schema upgrade between two
Function registerAttributeCopyingUpgrader Register an upgrader for itemType, from fromVersion to toVersion,
Function registerDeletionUpgrader Register an upgrader for itemType, from fromVersion to toVersion,
Function upgradeAllTheWay Undocumented
def registerUpgrader(upgrader, typeName, oldVersion, newVersion):
Register a callable which can perform a schema upgrade between two particular versions.
ParametersupgraderA one-argument callable which will upgrade an object. It is invoked with an instance of the old version of the object.
typeNameThe database typename for which this is an upgrader.
oldVersionThe version from which this will upgrade.
newVersionThe version tow hich this will upgrade. This must be exactly one greater than oldVersion.
def registerAttributeCopyingUpgrader(itemType, fromVersion, toVersion, postCopy=None):
Register an upgrader for itemType, from fromVersion to toVersion, which will copy all attributes from the legacy item to the new item. If postCopy is provided, it will be called with the new item after upgrading.
ParametersitemTypeaxiom.item.Item subclass
postCopya callable of one argument
ReturnsNone
def registerDeletionUpgrader(itemType, fromVersion, toVersion):
Register an upgrader for itemType, from fromVersion to toVersion, which will delete the item from the database.
ParametersitemTypeaxiom.item.Item subclass
ReturnsNone
def upgradeAllTheWay(o):
Undocumented
API Documentation for vodafone-mobile-connect-card-driver-for-linux, generated by pydoctor at 2008-01-10 13:06:31.