summaryrefslogtreecommitdiff
path: root/src/py_post.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-30 00:50:10 -0500
committerJohn Wiegley <johnw@newartisans.com>2012-03-30 00:51:06 -0500
commit931d6ff3f4c805232fd531da1750ab43befee8d2 (patch)
tree8a77f15976ef5a6e5314216217a1414dc5a4075e /src/py_post.cc
parentbf66abc258ee70de5bd5510301795168f46929f8 (diff)
downloadfork-ledger-931d6ff3f4c805232fd531da1750ab43befee8d2.tar.gz
fork-ledger-931d6ff3f4c805232fd531da1750ab43befee8d2.tar.bz2
fork-ledger-931d6ff3f4c805232fd531da1750ab43befee8d2.zip
Fix to Python value() method handling
Diffstat (limited to 'src/py_post.cc')
-rw-r--r--src/py_post.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/py_post.cc b/src/py_post.cc
index ce3bd71b..692542a0 100644
--- a/src/py_post.cc
+++ b/src/py_post.cc
@@ -166,8 +166,8 @@ void export_post()
.def("get_tag", py_get_tag_1m)
.def("get_tag", py_get_tag_2m)
- .def("date", &post_t::date)
- .def("aux_date", &post_t::aux_date)
+ .add_property("date", &post_t::date)
+ .add_property("aux_date", &post_t::aux_date)
.def("must_balance", &post_t::must_balance)
@@ -177,8 +177,7 @@ void export_post()
.def("has_xdata", &post_t::has_xdata)
.def("clear_xdata", &post_t::clear_xdata)
- .def("xdata", py_xdata,
- return_internal_reference<>())
+ .def("xdata", py_xdata, return_internal_reference<>())
//.def("add_to_value", &post_t::add_to_value)
.def("set_reported_account", &post_t::set_reported_account)