Update metadata with dynamic config types

After settings rework, we decided to make the upgrade plug-ins define their own configuration types. This is basically the definition for these configuration types. Only the get_version function is not yet implemented.

Contributes to issue CURA-844.
This commit is contained in:
Ghostkeeper 2016-06-23 10:52:42 +02:00
parent 6572d939bf
commit 8a44705413

View file

@ -16,13 +16,23 @@ def getMetaData():
"api": 2
},
"version_upgrade": {
# From To Upgrade function
("profile", 1): ("instance_container", 2, VersionUpgrade21to22.upgradeProfile),
("machine_instance", 1): ("container_stack", 2, VersionUpgrade21to22.upgradeMachineInstance),
("preferences", 1): ("preferences", 2, VersionUpgrade21to22.upgradePreferences)
},
"sources": {
"profile": {
"from": 1,
"to": 2
"get_version": VersionUpgrade21to22.getCfgVersion,
"location": {"./profiles"}
},
"machine_instance": {
"from": 1,
"to": 2
"get_version": VersionUpgrade21to22.getCfgVersion,
"location": {"./machine_instances"}
},
"preferences": {
"get_version": VersionUpgrade21to22.getCfgVersion,
"location": {"."}
}
}
}