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/pykota/storages/sql.py

    r2057 r2066  
    2222# 
    2323# $Log$ 
     24# Revision 1.67  2005/02/16 00:29:33  jalet 
     25# Fixed the maxdenybanners directive. 
     26# Introduced the denyduplicates directive. 
     27# Fixed some database related glitches. 
     28# 
    2429# Revision 1.66  2005/02/13 22:48:38  jalet 
    2530# Added the md5sum to the history 
     
    319324        userpquota = StorageUserPQuota(self, user, printer) 
    320325        if printer.Exists and user.Exists : 
    321             result = self.doSearch("SELECT id, lifepagecounter, pagecounter, softlimit, hardlimit, datelimit FROM userpquota WHERE userid=%s AND printerid=%s" % (self.doQuote(user.ident), self.doQuote(printer.ident))) 
     326            result = self.doSearch("SELECT * FROM userpquota WHERE userid=%s AND printerid=%s" % (self.doQuote(user.ident), self.doQuote(printer.ident))) 
    322327            if result : 
    323328                fields = result[0] 
     
    336341        grouppquota = StorageGroupPQuota(self, group, printer) 
    337342        if group.Exists : 
    338             result = self.doSearch("SELECT id, softlimit, hardlimit, datelimit FROM grouppquota WHERE groupid=%s AND printerid=%s" % (self.doQuote(group.ident), self.doQuote(printer.ident))) 
     343            result = self.doSearch("SELECT * FROM grouppquota WHERE groupid=%s AND printerid=%s" % (self.doQuote(group.ident), self.doQuote(printer.ident))) 
    339344            if result : 
    340345                fields = result[0] 
     
    354359        """Extracts a printer's last job information.""" 
    355360        lastjob = StorageLastJob(self, printer) 
    356         result = self.doSearch("SELECT jobhistory.id, jobid, userid, username, pagecounter, jobsize, jobprice, filename, title, copies, options, hostname, jobdate FROM jobhistory, users WHERE printerid=%s AND userid=users.id ORDER BY jobdate DESC LIMIT 1" % self.doQuote(printer.ident)) 
     361        result = self.doSearch("SELECT jobhistory.id, jobid, userid, username, pagecounter, jobsize, jobprice, filename, title, copies, options, hostname, jobdate, md5sum, pages, billingcode FROM jobhistory, users WHERE printerid=%s AND userid=users.id ORDER BY jobdate DESC LIMIT 1" % self.doQuote(printer.ident)) 
    357362        if result : 
    358363            fields = result[0]