Changeset 2463 for pykota/trunk/bin/cupspykota
- Timestamp:
- 09/19/05 09:08:55 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/cupspykota
r2455 r2463 822 822 self.exportPhaseInfo("BEFORE") 823 823 824 if self.Action != "DENY" : 825 if self.Printer.MaxJobSize and (self.softwareJobSize > self.Printer.MaxJobSize) : 826 # This printer was set to refuse jobs this large. 827 self.printInfo(_("Precomputed job size (%s pages) too large for printer %s.") % (self.softwareJobSize, self.PrinterName), "warn") 828 self.Action = "DENY" 829 824 830 if self.Action != "DENY" : 825 831 if self.User.LimitBy == "noprint" : … … 848 854 if self.User.LimitBy in ('noquota', 'nochange') : 849 855 self.logdebug("User %s is allowed to print with no limit, no need to check quota." % self.UserName) 856 elif self.Printer.PassThrough : 857 self.logdebug("Printer %s is in PassThrough mode, no need to check quota." % self.PrinterName) 850 858 else : 851 859 self.logdebug("Checking user %s print quota entry on printer %s" \ … … 920 928 self.printInfo(_("Job size : %i") % self.JobSize) 921 929 922 if self.User.LimitBy == "nochange":930 if (self.User.LimitBy == "nochange") or self.Printer.PassThrough : 923 931 # no need to update the quota for the current user on this printer 924 932 self.printInfo(_("User %s's quota on printer %s won't be modified") % (self.UserName, self.PrinterName))