Changeset 3153 for pykota/trunk/bin/cupspykota
- Timestamp:
- 03/12/07 20:46:57 (18 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/cupspykota
r3146 r3153 1105 1105 1106 1106 if self.Action not in ("DENY", "CANCEL") : 1107 if not self.didUserConfirm() :1108 self.Action = "CANCEL"1109 self.Reason = _("Print job cancelled.")1110 os.environ["PYKOTASTATUS"] = "CANCELLED"1111 1112 if self.Action not in ("DENY", "CANCEL") :1113 1107 if self.Printer.MaxJobSize and (self.softwareJobSize > self.Printer.MaxJobSize) : 1114 1108 # This printer was set to refuse jobs this large. … … 1164 1158 self.Reason = self.config.getSoftWarn(self.PrinterName) 1165 1159 1160 # If job still allowed to print, should we ask for confirmation ? 1161 if self.Action not in ("DENY", "CANCEL") : 1162 if not self.didUserConfirm() : 1163 self.Action = "CANCEL" 1164 self.Reason = _("Print job cancelled.") 1165 os.environ["PYKOTASTATUS"] = "CANCELLED" 1166 1166 1167 # exports some new environment variables 1167 1168 self.exportReason()