Changeset 812 for pykota/trunk
- Timestamp:
- 02/27/03 09:41:49 (22 years ago)
- Location:
- pykota/trunk
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/initscripts/pykota-postgresql.sql
r811 r812 14 14 -- 15 15 -- $Log$ 16 -- Revision 1.4 2003/02/27 08:40:14 jalet 17 -- DATETIME is not supported anymore in PostgreSQL 7.3 it seems, but 18 -- TIMESTAMP is. 19 -- 16 20 -- Revision 1.3 2003/02/26 20:34:22 jalet 17 21 -- Default value for printer page counter set to 0 … … 79 83 softlimit INT4, 80 84 hardlimit INT4, 81 datelimit DATETIME);85 datelimit TIMESTAMP); 82 86 83 87 -- … … 91 95 softlimit INT4, 92 96 hardlimit INT4, 93 datelimit DATETIME);97 datelimit TIMESTAMP); 94 98 95 99 -- -
pykota/trunk/pykota/storages/sql.py
r791 r812 15 15 # 16 16 # $Log$ 17 # Revision 1.19 2003/02/27 08:41:49 jalet 18 # DATETIME is not supported anymore in PostgreSQL 7.3 it seems, but 19 # TIMESTAMP is. 20 # 17 21 # Revision 1.18 2003/02/10 12:07:31 jalet 18 22 # Now repykota should output the recorded total page number for each printer too. … … 184 188 (userid, printerid) = self.getUPIds(username, printername) 185 189 if (userid is not None) and (printerid is not None) : 186 self.doQuery("UPDATE userpquota SET datelimit=%s:: DATETIMEWHERE 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(userid), self.doQuote(printerid)))190 self.doQuery("UPDATE userpquota SET datelimit=%s::TIMESTAMP 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(userid), self.doQuote(printerid))) 187 191 188 192 def updateUserPQuota(self, username, printername, pagecount) :