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:
joeydelarago 2022-08-19 13:53:43 +02:00
parent bf6422825b
commit b82f1f4a8c
4 changed files with 88 additions and 8 deletions

View file

@ -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 \