mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Add new Abstract machine stack type. This represents a type of printers (ultimaker_s3 etc).
These are created whenever a cloud printer of a new printer type is added. CURA-9277 Co-authored-by: casperlamboo <c.lamboo@ultimaker.com>
This commit is contained in:
parent
bf6422825b
commit
b82f1f4a8c
4 changed files with 88 additions and 8 deletions
|
|
@ -108,6 +108,7 @@ class CuraContainerRegistry(ContainerRegistry):
|
|||
:param container_type: :type{string} Type of the container (machine, quality, ...)
|
||||
:param container_name: :type{string} Name to check
|
||||
"""
|
||||
# FIXME: this should check for abstract machine
|
||||
container_class = ContainerStack if container_type == "machine" else InstanceContainer
|
||||
|
||||
return self.findContainersMetadata(container_type = container_class, id = container_name, type = container_type, ignore_case = True) or \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue