Profile.py 780 B

1234567891011121314151617181920
  1. # Copyright (c) 2015 Ultimaker B.V.
  2. # Cura is released under the terms of the AGPLv3 or higher.
  3. ## Creates a new profile instance by parsing a serialised profile in version 1
  4. # of the file format.
  5. #
  6. # \param serialised The serialised form of a profile in version 1.
  7. # \return A profile instance, or None if the file format is incorrect.
  8. def importVersion1(serialised):
  9. return None #Not implemented yet.
  10. ## A representation of a profile used as intermediary form for conversion from
  11. # one format to the other.
  12. class Profile:
  13. ## Serialises this profile as file format version 2.
  14. #
  15. # \return A serialised form of this profile, serialised in version 2 of
  16. # the file format.
  17. def exportVersion2():
  18. raise Exception("Not implemented yet.")