Changeset 2030 for pykota/trunk/pykota/storages/sql.py
- Timestamp:
- 01/18/05 20:47:50 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storages/sql.py
r1999 r2030 22 22 # 23 23 # $Log$ 24 # Revision 1.64 2005/01/18 19:47:50 jalet 25 # Big bug fix wrt the datelimit attribute 26 # 24 27 # Revision 1.63 2005/01/01 08:16:17 jalet 25 28 # Fixed a problem which occured when 'limitby' was unset in the PostgreSQL … … 522 525 def writeUserPQuotaPagesCounters(self, userpquota, newpagecounter, newlifepagecounter) : 523 526 """Sets the new page counters permanently for a user print quota.""" 524 self.doModify("UPDATE userpquota SET pagecounter=%s, lifepagecounter=%sWHERE id=%s" % (self.doQuote(newpagecounter), self.doQuote(newlifepagecounter), self.doQuote(userpquota.ident)))527 self.doModify("UPDATE userpquota SET pagecounter=%s, lifepagecounter=%s, datelimit=NULL WHERE id=%s" % (self.doQuote(newpagecounter), self.doQuote(newlifepagecounter), self.doQuote(userpquota.ident))) 525 528 526 529 def decreaseUserAccountBalance(self, user, amount) :