Changeset 705 for pykota/trunk
- Timestamp:
- 02/06/03 00:00:12 (22 years ago)
- Location:
- pykota/trunk/pykota
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/requesters/snmp.py
r695 r705 17 17 # 18 18 # $Log$ 19 # Revision 1.2 2003/02/05 23:00:12 jalet 20 # Forgotten import 21 # Bad datetime conversion 22 # 19 23 # Revision 1.1 2003/02/05 21:28:17 jalet 20 24 # Initial import into CVS … … 23 27 # 24 28 29 import os 25 30 from pykota.requester import PyKotaRequesterError 26 31 -
pykota/trunk/pykota/storages/sql.py
r700 r705 15 15 # 16 16 # $Log$ 17 # Revision 1.3 2003/02/05 23:00:12 jalet 18 # Forgotten import 19 # Bad datetime conversion 20 # 17 21 # Revision 1.2 2003/02/05 22:28:38 jalet 18 22 # More robust storage … … 97 101 if softlimit <= pagecounter < hardlimit : 98 102 if datelimit is None : 99 self.doQuery("UPDATE userpquota SET datelimit=%s WHERE userid=%s AND printerid=%s;" % ('%04i-%02i-%02i' % (now.year, now.month, now.day), self.doQuote(self.getUserId(username)), self.doQuote(self.getPrinterId(printername))))103 self.doQuery("UPDATE userpquota SET datelimit=%s::DATETIME WHERE userid=%s AND printerid=%s;" % (self.doQuote("%04i-%02i-%02i %02i:%02i" % (now.year, now.month, now.day, now.hour, now.minute), self.doQuote(self.getUserId(username)), self.doQuote(self.getPrinterId(printername)))) 100 104 datelimit = now 101 105 if (now - datelimit) <= GRACEDELAY :