mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-21 21:29:41 +08:00

This plug-in does nothing at the moment. It merely says that it is able to upgrade configuration from version 2.1 to 2.2, but then raises exceptions when you actually try to use it. This is by design. I will now implement the functions that do the conversion. Contributes to issue CURA-844.
21 lines
855 B
Python
21 lines
855 B
Python
# Copyright (c) 2015 Ultimaker B.V.
|
|
# Cura is released under the terms of the AGPLv3 or higher.
|
|
|
|
## Creates a new machine instance instance by parsing a serialised machine
|
|
# instance in version 1 of the file format.
|
|
#
|
|
# \param serialised The serialised form of a machine instance in version 1.
|
|
# \return A machine instance instance, or None if the file format is
|
|
# incorrect.
|
|
def importVersion1(serialised):
|
|
return None #Not implemented yet.
|
|
|
|
## A representation of a machine instance used as intermediary form for
|
|
# conversion from one format to the other.
|
|
class MachineInstance:
|
|
## Serialises this machine instance as file format version 2.
|
|
#
|
|
# \return A serialised form of this machine instance, serialised in
|
|
# version 2 of the file format.
|
|
def exportVersion2():
|
|
raise Exception("Not implemented yet.") |