MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / startPrint

Method startPrint

src/astroprint/printer/plugin/__init__.py:109–119  ·  view source on GitHub ↗
(self, printJobId=None)

Source from the content-addressed store, hash-verified

107 return True
108
109 def startPrint(self, printJobId=None):
110 if not super(PrinterWithPlugin, self).startPrint(printJobId):
111 return
112
113 if not self.isOperational() or self.isPrinting():
114 return
115
116 if self._currentFile is None:
117 raise ValueError("No file selected for printing")
118
119 self._plugin.startPrint()
120
121 def executeCancelCommands(self, disableMotorsAndHeater):
122 self._plugin.executeCancelCommands(disableMotorsAndHeater)

Callers 1

selectFileMethod · 0.95

Calls 2

isOperationalMethod · 0.95
isPrintingMethod · 0.95

Tested by

no test coverage detected