1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Copyright (c) 2020 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
from typing import Any, Dict, TYPE_CHECKING
from . import VersionUpgrade47to48
if TYPE_CHECKING:
from UM.Application import Application
upgrade = VersionUpgrade47to48.VersionUpgrade47to48()
def getMetaData() -> Dict[str, Any]:
return {
"version_upgrade": {
# From To Upgrade function
("preferences", 6000015): ("preferences", 6000016, upgrade.upgradePreferences),
("machine_stack", 4000015): ("machine_stack", 4000016, upgrade.upgradeStack),
("extruder_train", 4000015): ("extruder_train", 4000016, upgrade.upgradeStack),
("definition_changes", 4000015): ("definition_changes", 4000016, upgrade.upgradeInstanceContainer),
("quality_changes", 4000015): ("quality_changes", 4000016, upgrade.upgradeInstanceContainer),
("quality", 4000015): ("quality", 4000016, upgrade.upgradeInstanceContainer),
("user", 4000015): ("user", 4000016, upgrade.upgradeInstanceContainer),
},
"sources": {
"preferences": {
"get_version": upgrade.getCfgVersion,
"location": {"."}
},
"machine_stack": {
"get_version": upgrade.getCfgVersion,
"location": {"./machine_instances"}
},
"extruder_train": {
"get_version": upgrade.getCfgVersion,
"location": {"./extruders"}
},
"definition_changes": {
"get_version": upgrade.getCfgVersion,
"location": {"./definition_changes"}
},
"quality_changes": {
"get_version": upgrade.getCfgVersion,
"location": {"./quality_changes"}
},
"quality": {
"get_version": upgrade.getCfgVersion,
"location": {"./quality"}
},
"user": {
"get_version": upgrade.getCfgVersion,
"location": {"./user"}
}
}
}
def register(app: "Application") -> Dict[str, Any]:
return {"version_upgrade": upgrade}
|