diff options
author | Ghostkeeper <rubend@tutanota.com> | 2016-05-20 17:16:55 +0300 |
---|---|---|
committer | Ghostkeeper <rubend@tutanota.com> | 2016-05-20 17:22:10 +0300 |
commit | 5a28eca2039bce9b6e8102c9330c3087ece9484a (patch) | |
tree | 6ea7770502ea68f1ead5f69da737ab2664ab8b1d /cura/ProfileReader.py | |
parent | 85ce8a719ed0bbafae04cafe83af3a81fb8fbcf3 (diff) |
Add profile reader plug-in type
This type of plug-in will load a file as an instance container of the user profile type.
Contributes to issue CURA-1278.
Diffstat (limited to 'cura/ProfileReader.py')
-rw-r--r-- | cura/ProfileReader.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/cura/ProfileReader.py b/cura/ProfileReader.py new file mode 100644 index 0000000000..36bb2c7177 --- /dev/null +++ b/cura/ProfileReader.py @@ -0,0 +1,17 @@ +# Copyright (c) 2016 Ultimaker B.V. +# Cura is released under the terms of the AGPLv3 or higher. + +from UM.PluginObject import PluginObject + +## A type of plug-ins that reads profiles from a file. +# +# The profile is then stored as instance container of the type user profile. +class ProfileReader(PluginObject): + def __init__(self): + super().__init__() + + ## Read profile data from a file and return a filled profile. + # + # \return \type{Profile} The profile that was obtained from the file. + def read(self, file_name): + raise NotImplementedError("Profile reader plug-in was not correctly implemented. The read function was not implemented.")
\ No newline at end of file |