|
@@ -1,9 +1,8 @@
|
|
-# Copyright (c) 2017 Ultimaker B.V.
|
|
|
|
|
|
+# Copyright (c) 2018 Ultimaker B.V.
|
|
# Cura is released under the terms of the LGPLv3 or higher.
|
|
# Cura is released under the terms of the LGPLv3 or higher.
|
|
|
|
|
|
from UM.Application import Application
|
|
from UM.Application import Application
|
|
from UM.Logger import Logger
|
|
from UM.Logger import Logger
|
|
-from UM.Settings.ContainerRegistry import ContainerRegistry
|
|
|
|
from cura.CuraApplication import CuraApplication
|
|
from cura.CuraApplication import CuraApplication
|
|
|
|
|
|
from cura.PrinterOutputDevice import PrinterOutputDevice, ConnectionState
|
|
from cura.PrinterOutputDevice import PrinterOutputDevice, ConnectionState
|
|
@@ -232,7 +231,6 @@ class NetworkedPrinterOutputDevice(PrinterOutputDevice):
|
|
reply.uploadProgress.connect(onProgress)
|
|
reply.uploadProgress.connect(onProgress)
|
|
self._registerOnFinishedCallback(reply, onFinished)
|
|
self._registerOnFinishedCallback(reply, onFinished)
|
|
|
|
|
|
-
|
|
|
|
return reply
|
|
return reply
|
|
|
|
|
|
def postForm(self, target: str, header_data: str, body_data: bytes, onFinished: Optional[Callable[[Any, QNetworkReply], None]], onProgress: Callable = None) -> None:
|
|
def postForm(self, target: str, header_data: str, body_data: bytes, onFinished: Optional[Callable[[Any, QNetworkReply], None]], onProgress: Callable = None) -> None:
|