def __make_new_statement(self): self.__xactList = [] logging.info("path - " + str(self.__pathlist)) statement_path = self.__pathlist[:] statement_path.append('Statement') if self.fixedStatement: sync_stat_key = 'scur' + str(self.__account._scur_count) logging.info('Key to find = ' + sync_stat_key) statement_path.append(sync_stat_key) satts = {} dp = DateParser() satts['date'] = dp.ymd_from_date(dp.todate()) satts['display'] = self.__filename satts['ftype'] = self.__type satts['_fixedKey'] = self.fixedStatement #true or false satts['rawdata'] = str(self.__body) self._current_statement = Statement() logging.info('Got a statement with hash - ' + self._current_statement.hash) self.facade._statkey = self._current_statement
def set_current_balance(self, curBalance): if self.fixedStatement: dp = DateParser() self.__old_synchbal = self.__account.synchbal self.__old_synched = self.__account.synched self.__account.synchbal = curBalance self.__account.synchdate = dp.todate() self.__account.synched = True