summaryrefslogtreecommitdiff
path: root/test/regress/xact_code.py
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-11-19 14:27:44 -0800
committerJohn Wiegley <johnw@newartisans.com>2012-11-19 14:27:44 -0800
commitb74e257817c000d420b99f3e36697e37ab6c8a61 (patch)
treea92b4107277facc34b875d1790b67f632c0ee01b /test/regress/xact_code.py
parente77e9d692aea5a061f6fde144a56de085b1a74c4 (diff)
parent6a5d6a88cd626ee563b344657faec2ceb62b7f59 (diff)
downloadfork-ledger-b74e257817c000d420b99f3e36697e37ab6c8a61.tar.gz
fork-ledger-b74e257817c000d420b99f3e36697e37ab6c8a61.tar.bz2
fork-ledger-b74e257817c000d420b99f3e36697e37ab6c8a61.zip
Merge pull request #108 from afh/pull/python_xact_code
Fix crash when accessing the transaction code via post.xact.code using python
Diffstat (limited to 'test/regress/xact_code.py')
-rw-r--r--test/regress/xact_code.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/regress/xact_code.py b/test/regress/xact_code.py
new file mode 100644
index 00000000..64abb17d
--- /dev/null
+++ b/test/regress/xact_code.py
@@ -0,0 +1,4 @@
+import ledger
+
+for post in ledger.read_journal('test/regress/xact_code.dat').query('expenses'):
+ print post.xact.code