def load_all(self): for trans in account.get_all_transactions(): if not trans.transfer: self.model.append([trans, trans.description, trans.amount, trans.date, trans.account.name])
def apply_categorization_rules(*args): if config.get_option('assignments categorized transactions', 'Account') == 'True': b_include_categorized = True else: b_include_categorized = False global rules rules = get_all_active_by_priority() transactions = account.get_all_transactions() # print "Size: ", len(transactions) for transaction in transactions: if b_include_categorized or transaction.category is None: cat = get_category(transaction) if cat != transaction.category: transaction.category = get_category(transaction) logger.debug("Category assignment %s -> %s" % (transaction, cat)) yield transaction