Changeset 2758
- Timestamp:
- 02/27/06 15:28:53 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storages/sql.py
r2756 r2758 582 582 self.doQuote(upq.WarnCount), \ 583 583 self.doQuote(upq.DateLimit), \ 584 self.doQuote(upq.PageCounter ), \585 self.doQuote(upq.LifePageCounter ), \584 self.doQuote(upq.PageCounter or 0), \ 585 self.doQuote(upq.LifePageCounter or 0), \ 586 586 self.doQuote(upq.MaxJobSize))) 587 587 except PyKotaStorageError : … … 654 654 """Saves the billing code to the database.""" 655 655 self.doModify("UPDATE billingcodes SET balance=%s, pagecounter=%s, description=%s WHERE id=%s" \ 656 % (self.doQuote(code.Balance ), \657 self.doQuote(code.PageCounter ), \656 % (self.doQuote(code.Balance or 0.0), \ 657 self.doQuote(code.PageCounter or 0), \ 658 658 self.doQuote(self.userCharsetToDatabase(code.Description)), \ 659 659 self.doQuote(code.ident))) … … 700 700 self.doQuote(userpquota.WarnCount), \ 701 701 self.doQuote(userpquota.DateLimit), \ 702 self.doQuote(userpquota.PageCounter ), \703 self.doQuote(userpquota.LifePageCounter ), \702 self.doQuote(userpquota.PageCounter or 0), \ 703 self.doQuote(userpquota.LifePageCounter or 0), \ 704 704 self.doQuote(userpquota.MaxJobSize), \ 705 705 self.doQuote(userpquota.ident)))