mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
16 lines
753 B
Python
16 lines
753 B
Python
# Copyright (c) 2018 Ultimaker B.V.
|
|
# Cura is released under the terms of the LGPLv3 or higher.
|
|
from ..BaseModel import BaseModel
|
|
|
|
|
|
## Class representing the reasons that prevent this job from being printed on the associated printer
|
|
class ClusterPrintJobImpediment(BaseModel):
|
|
|
|
## Creates a new print job constraint.
|
|
# \param translation_key: A string indicating a reason the print cannot be printed,
|
|
# such as 'does_not_fit_in_build_volume'
|
|
# \param severity: A number indicating the severity of the problem, with higher being more severe
|
|
def __init__(self, translation_key: str, severity: int, **kwargs) -> None:
|
|
self.translation_key = translation_key
|
|
self.severity = severity
|
|
super().__init__(**kwargs)
|