mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 13:03:59 -06:00
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:
parent
6572d939bf
commit
8a44705413
1 changed files with 14 additions and 4 deletions
|
@ -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": {"."}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue