Back to index

plone3  3.1.7
migration.py
Go to the documentation of this file.
00001 from zope.interface import Interface
00002 
00003 class IMigrationTool(Interface):
00004     """Handles migrations between Plone releases."""
00005 
00006     def getInstanceVersion():
00007         """The version this instance of Plone is on."""
00008 
00009     def setInstanceVersion(version):
00010         """The version this instance of Plone is on."""
00011 
00012     def knownVersions():
00013         """All known version ids, except current one and unsupported
00014            migration paths.
00015         """
00016 
00017     def unsupportedVersion():
00018         """Is the current instance version known to be a no longer supported
00019            version for migrations.
00020         """
00021 
00022     def getFileSystemVersion():
00023         """The version the filesystem code of Plone is on."""
00024 
00025     def getFSVersionTuple():
00026         """Returns tuple representing filesystem version."""
00027 
00028     def getInstanceVersionTuple():
00029         """Returns tuple representing instance version."""
00030 
00031     def needUpgrading():
00032         """Need upgrading?"""
00033 
00034     def coreVersions():
00035         """Useful core version information."""
00036 
00037     def coreVersionsList():
00038         """Useful core version information."""
00039 
00040     def needUpdateRole():
00041         """Do roles need to be updated?"""
00042 
00043     def needRecatalog():
00044         """Does this thing now need recataloging?"""
00045 
00046     def getProductInfo():
00047         """Provide information about installed products for error reporting"""
00048 
00049     def upgrade(REQUEST=None, dry_run=None, swallow_errors=1):
00050         """Perform the upgrade."""