Changeset 2857 for pykota/trunk/pykota/storages/sql.py
- Timestamp:
- 04/10/06 10:18:44 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storages/sql.py
r2830 r2857 274 274 userpquota.HardLimit = fields.get("hardlimit") 275 275 userpquota.DateLimit = fields.get("datelimit") 276 userpquota.WarnCount = fields.get("warncount") 276 userpquota.WarnCount = fields.get("warncount") or 0 277 277 userpquota.Exists = 1 278 278 return userpquota … … 513 513 userpquota.HardLimit = record.get("hardlimit") 514 514 userpquota.DateLimit = record.get("datelimit") 515 userpquota.WarnCount = record.get("warncount") 515 userpquota.WarnCount = record.get("warncount") or 0 516 516 userpquota.Exists = 1 517 517 usersandquotas.append((user, userpquota)) … … 618 618 self.doQuote(upq.SoftLimit), \ 619 619 self.doQuote(upq.HardLimit), \ 620 self.doQuote(upq.WarnCount ), \620 self.doQuote(upq.WarnCount or 0), \ 621 621 self.doQuote(upq.DateLimit), \ 622 622 self.doQuote(upq.PageCounter or 0), \ … … 731 731 % (self.doQuote(userpquota.SoftLimit), \ 732 732 self.doQuote(userpquota.HardLimit), \ 733 self.doQuote(userpquota.WarnCount ), \733 self.doQuote(userpquota.WarnCount or 0), \ 734 734 self.doQuote(userpquota.DateLimit), \ 735 735 self.doQuote(userpquota.PageCounter or 0), \