def __init__(self, fname=None, search="", opts=""): Transactions.__init__(self) if not fname: fname = c['ledger-file'] self.search = search self.opts = opts self.fname = fname self.name = self.fname
def __init__(self, **kwargs): self.rename_pdfs() self.statements = [] self.statements_dir = kwargs['statements-dir'] self.bank_name = kwargs['bank-name'] self.name = kwargs['name'] self.ledger_account = kwargs['ledger-account'] self.account_num = None self.config = c['banks'][self.bank_name]['accounts'][self.name] Transactions.__init__(self)