예제 #1
0
파일: electricity.py 프로젝트: xgenvn/acc
 def begin_adjustment(self):
     """
     http://martinfowler.com/eaaDev/DifferenceAdjustment.html
     """
     assert not self.is_adjusting()
     # must be deep copy
     self.saved_real_accounts = self.accounts
     self.accounts = copy_accounts(self.saved_real_accounts)
예제 #2
0
파일: electricity.py 프로젝트: knoguchi/acc
 def begin_adjustment(self):
     """
     http://martinfowler.com/eaaDev/DifferenceAdjustment.html
     """
     assert not self.is_adjusting()
     # must be deep copy
     self.saved_real_accounts = self.accounts
     self.accounts = copy_accounts(self.saved_real_accounts)
예제 #3
0
파일: adjustment.py 프로젝트: xgenvn/acc
 def snapshot_accounts(self):
     self.saved_accounts = self.subject.get_accounts()
     self.subject.set_accounts(copy_accounts(self.saved_accounts))
예제 #4
0
파일: adjustment.py 프로젝트: knoguchi/acc
 def snapshot_accounts(self):
     self.saved_accounts = self.subject.get_accounts()
     self.subject.set_accounts(copy_accounts(self.saved_accounts))