Changeset 3549 for pykota/trunk/bin/cupspykota
- Timestamp:
- 08/18/10 04:20:57 (14 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/cupspykota
r3545 r3549 557 557 setenv("PYKOTALIFETIMEPAID", str(self.User.LifeTimePaid or 0.0), self.charset) 558 558 setenv("PYKOTAUSERDESCRIPTION", self.User.Description or "", self.charset) 559 setenv("PYKOTAMAXJOBSIZE", ((self.UserPQuota.MaxJobSize is None) and _("Unlimited")) or str(self.UserPQuota.MaxJobSize), self.charset) 559 560 560 561 setenv("PYKOTAPAGECOUNTER", str(self.UserPQuota.PageCounter or 0), self.charset) … … 1027 1028 # This printer was set to refuse jobs this large. 1028 1029 self.printInfo(_("Precomputed job size (%s pages) too large for printer %s.") % (self.softwareJobSize, self.PrinterName), "warn") 1030 self.Action = "DENY" 1031 # here we don't put the precomputed job size in the message 1032 # because in case of error the user could complain :-) 1033 self.Reason = _("You are not allowed to print so many pages on printer %s at this time.") % self.PrinterName 1034 1035 if self.Action not in ("DENY", "CANCEL") : 1036 if (self.UserPQuota.MaxJobSize is not None) and (self.softwareJobSize > self.UserPQuota.MaxJobSize) : 1037 # This user print quota entry was set to refuse jobs this large. 1038 self.printInfo(_("Precomputed job size (%s pages) too large for user %s on printer %s.") % (self.softwareJobSize, self.UserName, self.PrinterName), "warn") 1029 1039 self.Action = "DENY" 1030 1040 # here we don't put the precomputed job size in the message