156 | | # We can safely assume this won't change |
157 | | if self.printerInternalPageCounter == previousValue : |
158 | | # Here the job won't be printed, because probably |
159 | | # the printer rejected it for some reason. |
160 | | self.parent.filter.printInfo("Printer %s probably won't print this job !!!" % self.parent.filter.PrinterName, "warn") |
161 | | else : |
162 | | # Here the job has already been entirely printed, and |
163 | | # the printer has already passed from 'idle' to 'printing' to 'idle' again. |
164 | | self.parent.filter.printInfo("Printer %s has probably already printed this job !!!" % self.parent.filter.PrinterName, "warn") |
165 | | break |
| 156 | # We can safely assume this won't change if printer is now 'idle' |
| 157 | pstatusAsString = printerStatusValues.get(self.printerStatus) |
| 158 | dstatusAsString = deviceStatusValues.get(self.deviceStatus) |
| 159 | if (pstatusAsString == 'idle') or \ |
| 160 | ((pstatusAsString == 'other') and \ |
| 161 | (dstatusAsString == 'running')) : |
| 162 | if self.printerInternalPageCounter == previousValue : |
| 163 | # Here the job won't be printed, because probably |
| 164 | # the printer rejected it for some reason. |
| 165 | self.parent.filter.printInfo("Printer %s probably won't print this job !!!" % self.parent.filter.PrinterName, "warn") |
| 166 | else : |
| 167 | # Here the job has already been entirely printed, and |
| 168 | # the printer has already passed from 'idle' to 'printing' to 'idle' again. |
| 169 | self.parent.filter.printInfo("Printer %s has probably already printed this job !!!" % self.parent.filter.PrinterName, "warn") |
| 170 | break |