Show
Ignore:
Timestamp:
02/16/05 01:29:33 (19 years ago)
Author:
jalet
Message:

Fixed the maxdenybanners directive.
Introduced the denyduplicates directive.
Fixed some database related glitches.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/lprngpykota

    r2062 r2066  
    2424# 
    2525# $Log$ 
     26# Revision 1.17  2005/02/16 00:29:33  jalet 
     27# Fixed the maxdenybanners directive. 
     28# Introduced the denyduplicates directive. 
     29# Fixed some database related glitches. 
     30# 
    2631# Revision 1.16  2005/02/14 23:39:50  jalet 
    2732# Introduces the new 'trustjobsize' directive to workaround some printers 
     
    156161            self.printMoreInfo(user, printer, _("Job contains no data. Printing is denied."), "warn") 
    157162            action = "DENY" 
     163        elif self.config.getDenyDuplicates(printer.Name) \ 
     164             and printer.LastJob.Exists \ 
     165             and (printer.LastJob.UserName == user.Name) \ 
     166             and (printer.LastJob.JobMD5Sum == self.checksum) : 
     167            self.printMoreInfo(user, printer, _("Job is a duplicate. Printing is denied."), "warn") 
     168            action = "DENY"  
    158169        else :     
    159170            # checks the user's quota