Cura/plugins/VersionUpgrade/VersionUpgrade21to22/__init__.py
Ghostkeeper c1b738953b Align documentation better
I just couldn't stand it...

'I have to sort my books', she cried
With self-indulgent glee
With senseless, narcissistic pride:
'I'm just so OCD'

'How random, guys', I smiled and said
Then left without a peep
And washed my hands until they bled
And cried myself to sleep

Contributes to issue CURA-844.
2016-07-07 13:46:39 +02:00

43 lines
1.5 KiB
Python

# Copyright (c) 2016 Ultimaker B.V.
# Cura is released under the terms of the AGPLv3 or higher.
from . import VersionUpgrade21to22
from UM.i18n import i18nCatalog
catalog = i18nCatalog("cura")
upgrade = VersionUpgrade21to22.VersionUpgrade21to22()
def getMetaData():
return {
"plugin": {
"name": catalog.i18nc("@label", "Version Upgrade 2.1 to 2.2"),
"author": "Ultimaker",
"version": "1.0",
"description": catalog.i18nc("@info:whatsthis", "Upgrades configurations from Cura 2.1 to Cura 2.2."),
"api": 2
},
"version_upgrade": {
# From To Upgrade function
("profile", 1): ("instance_container", 2, upgrade.upgradeProfile),
("machine_instance", 1): ("container_stack", 2, upgrade.upgradeMachineInstance),
("preferences", 1): ("preferences", 2, upgrade.upgradePreferences)
},
"sources": {
"profile": {
"get_version": upgrade.getCfgVersion,
"location": {"./profiles"}
},
"machine_instance": {
"get_version": upgrade.getCfgVersion,
"location": {"./machine_instances"}
},
"preferences": {
"get_version": upgrade.getCfgVersion,
"location": {"."}
}
}
}
def register(app):
return { "version_upgrade": upgrade }