summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rw-r--r--main.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/main.py b/main.py
index 4103e5a3..0a0919ca 100644
--- a/main.py
+++ b/main.py
@@ -19,5 +19,13 @@ register_parser (parser)
journal = Journal ()
parse_journal_file (args[0], journal)
+class OutputTransaction (TransactionHandler):
+ def __call__ (self, xact):
+ print xact.entry.payee
+
+handler = OutputTransaction()
+chain = FilterTransactions (handler, "/Checking/")
+
for entry in journal:
- print entry.payee
+ for xact in entry:
+ chain (xact)