Changeset 722 for pykota/trunk/pykota/tool.py
- Timestamp:
- 02/06/03 16:03:11 (21 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/tool.py
r715 r722 15 15 # 16 16 # $Log$ 17 # Revision 1.10 2003/02/06 15:03:11 jalet 18 # added a method to set the limit date 19 # 17 20 # Revision 1.9 2003/02/06 10:39:23 jalet 18 21 # Preliminary edpykota work. … … 193 196 if datelimit is None : 194 197 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) 196 199 if (now + gracedelay) < datelimit : 197 200 action = "WARN"