diff options
author | Alexis Hildebrandt <afh@surryhill.net> | 2012-11-19 23:00:58 +0100 |
---|---|---|
committer | Alexis Hildebrandt <afh@surryhill.net> | 2012-11-19 23:00:58 +0100 |
commit | 6a5d6a88cd626ee563b344657faec2ceb62b7f59 (patch) | |
tree | a92b4107277facc34b875d1790b67f632c0ee01b /test/regress/xact_code.dat | |
parent | e77e9d692aea5a061f6fde144a56de085b1a74c4 (diff) | |
download | fork-ledger-6a5d6a88cd626ee563b344657faec2ceb62b7f59.tar.gz fork-ledger-6a5d6a88cd626ee563b344657faec2ceb62b7f59.tar.bz2 fork-ledger-6a5d6a88cd626ee563b344657faec2ceb62b7f59.zip |
Fix crash when accessing the transaction code via post.xact.code using python
ledger would abort with the following error message:
TypeError: No Python class registered for C++ class boost::optional<std::string>
The changes pass a CallPolicy to make_getter when adding the transaction
code property for python, so that the correct to_python conversion is
made. For details see:
http://www.boost.org/doc/libs/1_52_0/libs/python/doc/v2/faq.html#topythonconversionfailed
Diffstat (limited to 'test/regress/xact_code.dat')
-rw-r--r-- | test/regress/xact_code.dat | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/regress/xact_code.dat b/test/regress/xact_code.dat new file mode 100644 index 00000000..60956a23 --- /dev/null +++ b/test/regress/xact_code.dat @@ -0,0 +1,3 @@ +2012-11-10 (C0-d3) Payee + Assets:Checking € -12,45 + Expenses:Expenditure |