Changeset 2676 for pykota/trunk/pykota/storages/ldapstorage.py
- Timestamp:
- 02/12/06 00:05:15 (18 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storages/ldapstorage.py
r2657 r2676 1615 1615 return self.getBillingCode(label) 1616 1616 1617 def writeBillingCodeDescription(self, code) :1617 def saveBillingCode(self, code) : 1618 1618 """Sets the new description for a billing code.""" 1619 1619 fields = { 1620 1620 "description" : self.userCharsetToDatabase(code.Description or ""), 1621 } 1622 if fields["description"] : 1623 self.doModify(code.ident, fields) 1621 "pykotaPageCounter" : str(code.PageCounter), 1622 "pykotaBalance" : str(code.Balance), 1623 } 1624 self.doModify(code.ident, fields) 1624 1625 1625 1626 def getMatchingBillingCodes(self, billingcodepattern) : … … 1645 1646 return codes 1646 1647 1647 def setBillingCodeValues(self, code, newpagecounter, newbalance) :1648 """Sets the new page counter and balance for a billing code."""1649 fields = {1650 "pykotaPageCounter" : str(newpagecounter),1651 "pykotaBalance" : str(newbalance),1652 }1653 return self.doModify(code.ident, fields)1654 1655 1648 def consumeBillingCode(self, code, pagecounter, balance) : 1656 1649 """Consumes from a billing code."""