Show
Ignore:
Timestamp:
02/06/03 16:03:11 (21 years ago)
Author:
jalet
Message:

added a method to set the limit date

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/tool.py

    r715 r722  
    1515# 
    1616# $Log$ 
     17# Revision 1.10  2003/02/06 15:03:11  jalet 
     18# added a method to set the limit date 
     19# 
    1720# Revision 1.9  2003/02/06 10:39:23  jalet 
    1821# Preliminary edpykota work. 
     
    193196                         if datelimit is None : 
    194197                             datelimit = now + gracedelay 
    195                              self.storage.doQuery("UPDATE userpquota SET datelimit=%s::DATETIME WHERE userid=%s AND printerid=%s;" % (self.doQuote("%04i-%02i-%02i %02i:%02i:%02i" % (datelimit.year, datelimit.month, datelimit.day, datelimit.hour, datelimit.minute, datelimit.second)), self.doQuote(self.getUserId(username)), self.doQuote(self.getPrinterId(printername)))) 
     198                             self.storage.setDateLimit(username, printername, datelimit) 
    196199                         if (now + gracedelay) < datelimit : 
    197200                             action = "WARN"