Changeset 2452 for pykota/trunk/pykota/storage.py
- Timestamp:
- 09/17/05 16:29:43 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storage.py
r2451 r2452 59 59 self.AccountBalance = float(self.AccountBalance or 0.0) - amount 60 60 61 def setAccountBalance(self, balance, lifetimepaid ) :61 def setAccountBalance(self, balance, lifetimepaid, comment="") : 62 62 """Sets the user's account balance in case he pays more money.""" 63 63 diff = float(lifetimepaid or 0.0) - float(self.LifeTimePaid or 0.0) … … 65 65 try : 66 66 self.parent.writeUserAccountBalance(self, balance, lifetimepaid) 67 self.parent.writeNewPayment(self, diff )67 self.parent.writeNewPayment(self, diff, comment) 68 68 except PyKotaStorageError, msg : 69 69 self.parent.rollbackTransaction() … … 80 80 except AttributeError : 81 81 limitby = "quota" 82 if limitby in ["quota", "balance", "quota-then-balance", "balance-then-quota"] : 82 if limitby in ["quota", "balance", \ 83 "noquota", "noprint", "nochange"] : 83 84 self.parent.writeUserLimitBy(self, limitby) 84 85 self.LimitBy = limitby … … 120 121 except AttributeError : 121 122 limitby = "quota" 122 if limitby in ["quota", "balance" ] :123 if limitby in ["quota", "balance", "noquota"] : 123 124 self.parent.writeGroupLimitBy(self, limitby) 124 125 self.LimitBy = limitby