LegacyUM3 now handles warnings & errors again

CL-541
This commit is contained in:
Jaime van Kessel 2017-11-23 13:37:59 +01:00
parent 96d5c7152b
commit 8b8d67b3a8
5 changed files with 166 additions and 11 deletions

View file

@ -21,6 +21,7 @@ class AuthState(IntEnum):
class NetworkedPrinterOutputDevice(PrinterOutputDevice):
authenticationStateChanged = pyqtSignal()
def __init__(self, device_id, address: str, properties, parent = None):
super().__init__(device_id = device_id, parent = parent)
self._manager = None
@ -41,6 +42,9 @@ class NetworkedPrinterOutputDevice(PrinterOutputDevice):
self._cached_multiparts = {}
def requestWrite(self, nodes, file_name=None, filter_by_machine=False, file_handler=None, **kwargs):
raise NotImplementedError("requestWrite needs to be implemented")
def setAuthenticationState(self, authentication_state):
if self._authentication_state != authentication_state:
self._authentication_state = authentication_state