Rename 24to25 to 25to26

The upgrade now upgrades profiles from the 2.5 format to 2.6, since we delayed the update for the 2.5 release.

Contributes to issue CURA-3427.
This commit is contained in:
Ghostkeeper 2017-05-11 14:32:45 +02:00
parent 99cb8bc169
commit b57cb16f6d
No known key found for this signature in database
GPG key ID: C5F96EE2BC0F7E75
3 changed files with 9 additions and 9 deletions

View file

@ -15,13 +15,13 @@ _split_settings = { #These settings should be copied to all settings it was spli
} }
## A collection of functions that convert the configuration of the user in Cura ## A collection of functions that convert the configuration of the user in Cura
# 2.4 to a configuration for Cura 2.5. # 2.5 to a configuration for Cura 2.6.
# #
# All of these methods are essentially stateless. # All of these methods are essentially stateless.
class VersionUpgrade24to25(VersionUpgrade): class VersionUpgrade25to26(VersionUpgrade):
## Gets the version number from a CFG file in Uranium's 2.4 format. ## Gets the version number from a CFG file in Uranium's 2.5 format.
# #
# Since the format may change, this is implemented for the 2.4 format only # Since the format may change, this is implemented for the 2.5 format only
# and needs to be included in the version upgrade system rather than # and needs to be included in the version upgrade system rather than
# globally in Uranium. # globally in Uranium.
# #
@ -35,7 +35,7 @@ class VersionUpgrade24to25(VersionUpgrade):
parser.read_string(serialised) parser.read_string(serialised)
return int(parser.get("general", "version")) #Explicitly give an exception when this fails. That means that the file format is not recognised. return int(parser.get("general", "version")) #Explicitly give an exception when this fails. That means that the file format is not recognised.
## Upgrades the preferences file from version 2.4 to 2.5. ## Upgrades the preferences file from version 2.5 to 2.6.
# #
# \param serialised The serialised form of a preferences file. # \param serialised The serialised form of a preferences file.
# \param filename The name of the file to upgrade. # \param filename The name of the file to upgrade.
@ -66,7 +66,7 @@ class VersionUpgrade24to25(VersionUpgrade):
parser.write(output) parser.write(output)
return [filename], [output.getvalue()] return [filename], [output.getvalue()]
## Upgrades an instance container from version 2.4 to 2.5. ## Upgrades an instance container from version 2.5 to 2.6.
# #
# \param serialised The serialised form of a quality profile. # \param serialised The serialised form of a quality profile.
# \param filename The name of the file to upgrade. # \param filename The name of the file to upgrade.

View file

@ -6,15 +6,15 @@ from . import VersionUpgrade24to25
from UM.i18n import i18nCatalog from UM.i18n import i18nCatalog
catalog = i18nCatalog("cura") catalog = i18nCatalog("cura")
upgrade = VersionUpgrade24to25.VersionUpgrade24to25() upgrade = VersionUpgrade25to26.VersionUpgrade25to26()
def getMetaData(): def getMetaData():
return { return {
"plugin": { "plugin": {
"name": catalog.i18nc("@label", "Version Upgrade 2.4 to 2.5"), "name": catalog.i18nc("@label", "Version Upgrade 2.5 to 2.6"),
"author": "Ultimaker", "author": "Ultimaker",
"version": "1.0", "version": "1.0",
"description": catalog.i18nc("@info:whatsthis", "Upgrades configurations from Cura 2.4 to Cura 2.5."), "description": catalog.i18nc("@info:whatsthis", "Upgrades configurations from Cura 2.5 to Cura 2.6."),
"api": 3 "api": 3
}, },
"version_upgrade": { "version_upgrade": {