diff options
author | jelle Spijker <j.spijker@ultimaker.com> | 2020-10-12 17:55:57 +0300 |
---|---|---|
committer | Jelle Spijker <spijker.jelle@gmail.com> | 2020-10-12 17:55:57 +0300 |
commit | d78ddd6c1748765bc7ab8cd5a712737f7500478f (patch) | |
tree | 06de14b651ceb26c5000f50d3d02b3afbdd97aa6 /plugins | |
parent | 0493fb24dfd7a49fc1e9db58d9011ec829db87ad (diff) |
Created Print job upload Queue Full Message
This message is shown to the user in Cura when the digital
factory returns a 409, because the queue is full
CURA-7760 sending multiple printjobs notifications
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/UM3NetworkPrinting/src/Messages/PrintJobUploadQueueFullMessage.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/plugins/UM3NetworkPrinting/src/Messages/PrintJobUploadQueueFullMessage.py b/plugins/UM3NetworkPrinting/src/Messages/PrintJobUploadQueueFullMessage.py new file mode 100644 index 0000000000..dc910e9e1b --- /dev/null +++ b/plugins/UM3NetworkPrinting/src/Messages/PrintJobUploadQueueFullMessage.py @@ -0,0 +1,19 @@ +# Copyright (c) 2020 Ultimaker B.V. +# Cura is released under the terms of the LGPLv3 or higher. + +from UM import i18nCatalog +from UM.Message import Message + + +I18N_CATALOG = i18nCatalog("cura") + + +class PrintJobUploadQueueFullMessage(Message): + """Message shown when uploading a print job to a cluster and the print queue is full.""" + + def __init__(self) -> None: + super().__init__( + text = I18N_CATALOG.i18nc("@info:status", "Print job queue is full. The printer can't accept a new job."), + title = I18N_CATALOG.i18nc("@info:title", "Queue Full"), + lifetime = 10 + ) |