mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Rename file_type parameter to relation_type
It was renamed in libCharon for better semantic meaning. Contributes to issue CURA-4872.
This commit is contained in:
parent
6f833051f8
commit
2d48fbb608
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ class UFPWriter(MeshWriter):
|
||||||
gcode = archive.getStream("/3D/model.gcode")
|
gcode = archive.getStream("/3D/model.gcode")
|
||||||
gcode.write(gcode_textio.getvalue().encode("UTF-8"))
|
gcode.write(gcode_textio.getvalue().encode("UTF-8"))
|
||||||
gcode.close()
|
gcode.close()
|
||||||
archive.addRelation(virtual_path = "/3D/model.gcode", file_type = "http://schemas.ultimaker.org/package/2018/relationships/gcode")
|
archive.addRelation(virtual_path = "/3D/model.gcode", relation_type = "http://schemas.ultimaker.org/package/2018/relationships/gcode")
|
||||||
|
|
||||||
#Store the thumbnail.
|
#Store the thumbnail.
|
||||||
#TODO: Generate the thumbnail image. Below is just a placeholder.
|
#TODO: Generate the thumbnail image. Below is just a placeholder.
|
||||||
|
@ -29,6 +29,6 @@ class UFPWriter(MeshWriter):
|
||||||
thumbnail = archive.getStream("/Metadata/thumbnail.png")
|
thumbnail = archive.getStream("/Metadata/thumbnail.png")
|
||||||
thumbnail.write(open(os.path.join(os.path.dirname(__file__), "kitten.png"), "rb").read())
|
thumbnail.write(open(os.path.join(os.path.dirname(__file__), "kitten.png"), "rb").read())
|
||||||
thumbnail.close()
|
thumbnail.close()
|
||||||
archive.addRelation(virtual_path = "/Metadata/thumbnail.png", file_type = "http://schemas.openxmlformats.org/package/2006/relationships/metadata/thumbnail")
|
archive.addRelation(virtual_path = "/Metadata/thumbnail.png", relation_type = "http://schemas.openxmlformats.org/package/2006/relationships/metadata/thumbnail")
|
||||||
|
|
||||||
archive.close()
|
archive.close()
|
Loading…
Add table
Add a link
Reference in a new issue