Show
Ignore:
Timestamp:
02/18/06 11:56:29 (18 years ago)
Author:
jerome
Message:

Improved user modification speed by around 15%.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/storage.py

    r2706 r2707  
    7676        """Sets the user's account balance in case he pays more money.""" 
    7777        diff = float(lifetimepaid or 0.0) - float(self.LifeTimePaid or 0.0) 
    78         self.parent.beginTransaction() 
    79         try : 
    80             self.parent.writeUserAccountBalance(self, balance, lifetimepaid) 
    81             self.parent.writeNewPayment(self, diff, comment) 
    82         except PyKotaStorageError, msg :     
    83             self.parent.rollbackTransaction() 
    84             raise PyKotaStorageError, msg 
    85         else :     
    86             self.parent.commitTransaction() 
    87             self.AccountBalance = balance 
    88             self.LifeTimePaid = lifetimepaid 
     78        self.AccountBalance = balance 
     79        self.LifeTimePaid = lifetimepaid 
     80        self.parent.writeNewPayment(self, diff, comment) 
     81        self.isDirty = True 
    8982         
    9083    def setLimitBy(self, limitby) :