- Timestamp:
- 09/28/05 16:14:33 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/cupspykota
r2474 r2522 762 762 763 763 def checkIfDupe(self) : 764 """Checks if the job is a dup e, and handles the situation."""765 self.logdebug("Checking if the job is a dup e...")764 """Checks if the job is a duplicate, and handles the situation.""" 765 self.logdebug("Checking if the job is a duplicate...") 766 766 denyduplicates = self.config.getDenyDuplicates(self.PrinterName) 767 767 if not denyduplicates : 768 self.logdebug("We don't care about dup es after all.")768 self.logdebug("We don't care about duplicate jobs after all.") 769 769 elif self.Printer.LastJob.Exists \ 770 770 and (self.Printer.LastJob.UserName == self.UserName) \ … … 775 775 # TODO : with SQL, and is much more complex with the 776 776 # TODO : actual LDAP schema. Maybe this is not very 777 # TODO : important, because usually dup es are rapidlysucessive.777 # TODO : important, because usually duplicate jobs are sucessive. 778 778 msg = _("Job is a dupe") 779 779 if denyduplicates == 1 : … … 782 782 self.Reason = _("Duplicate print jobs are not allowed on printer %s.") % self.PrinterName 783 783 else : 784 self.logdebug("Launching subprocess [%s] to see if dup es should be allowed or not." % denyduplicates)784 self.logdebug("Launching subprocess [%s] to see if duplicate jobs should be allowed or not." % denyduplicates) 785 785 fanswer = os.popen(denyduplicates, "r") 786 786 self.Action = fanswer.read().strip().upper() … … 792 792 self.printInfo("%s : %s." % (msg, _("Subprocess allowed printing of a dupe")), "warn") 793 793 else : 794 self.logdebug("Job doesn't seem to be a dup e.")795 self.logdebug("Checking if the job is a dup e done.")794 self.logdebug("Job doesn't seem to be a duplicate.") 795 self.logdebug("Checking if the job is a duplicate done.") 796 796 797 797 def tellUser(self) :