Changeset 2030 for pykota/trunk/pykota/storages
- Timestamp:
- 01/18/05 20:47:50 (19 years ago)
- Location:
- pykota/trunk/pykota/storages
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storages/ldapstorage.py
r2000 r2030 22 22 # 23 23 # $Log$ 24 # Revision 1.95 2005/01/18 19:47:50 jalet 25 # Big bug fix wrt the datelimit attribute 26 # 24 27 # Revision 1.94 2005/01/01 18:53:27 jalet 25 28 # Implemented in the LDAP backend code the same fix than in PostgreSQL backend … … 1167 1170 "pykotaPageCounter" : str(newpagecounter), 1168 1171 "pykotaLifePageCounter" : str(newlifepagecounter), 1172 "pykotaDateLimit" : None, 1169 1173 } 1170 1174 return self.doModify(userpquota.ident, fields) -
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) :