Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/UM3NetworkPrinting/src/ExportFileJob.py')
-rw-r--r--plugins/UM3NetworkPrinting/src/ExportFileJob.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/UM3NetworkPrinting/src/ExportFileJob.py b/plugins/UM3NetworkPrinting/src/ExportFileJob.py
index 56d15bc835..6fde08cc5f 100644
--- a/plugins/UM3NetworkPrinting/src/ExportFileJob.py
+++ b/plugins/UM3NetworkPrinting/src/ExportFileJob.py
@@ -9,8 +9,8 @@ from cura.CuraApplication import CuraApplication
from .MeshFormatHandler import MeshFormatHandler
-## Job that exports the build plate to the correct file format for the target cluster.
class ExportFileJob(WriteFileJob):
+ """Job that exports the build plate to the correct file format for the target cluster."""
def __init__(self, file_handler: Optional[FileHandler], nodes: List[SceneNode], firmware_version: str) -> None:
@@ -27,12 +27,14 @@ class ExportFileJob(WriteFileJob):
extension = self._mesh_format_handler.preferred_format.get("extension", "")
self.setFileName("{}.{}".format(job_name, extension))
- ## Get the mime type of the selected export file type.
def getMimeType(self) -> str:
+ """Get the mime type of the selected export file type."""
+
return self._mesh_format_handler.mime_type
- ## Get the job result as bytes as that is what we need to upload to the cluster.
def getOutput(self) -> bytes:
+ """Get the job result as bytes as that is what we need to upload to the cluster."""
+
output = self.getStream().getvalue()
if isinstance(output, str):
output = output.encode("utf-8")