diff options
author | John Wiegley <johnw@newartisans.com> | 2009-11-05 02:27:29 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-11-05 02:27:42 -0500 |
commit | 060fc0e00bacb96d1d16163779d98c45c3999014 (patch) | |
tree | 1e6c661379f02fdc52ef107fd500438ab69f3e60 /src/py_post.cc | |
parent | 8bd16b2e8e61f914767e3d0973e83f7326f11cbc (diff) | |
download | fork-ledger-060fc0e00bacb96d1d16163779d98c45c3999014.tar.gz fork-ledger-060fc0e00bacb96d1d16163779d98c45c3999014.tar.bz2 fork-ledger-060fc0e00bacb96d1d16163779d98c45c3999014.zip |
Made many object methods in Python properties
Diffstat (limited to 'src/py_post.cc')
-rw-r--r-- | src/py_post.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/py_post.cc b/src/py_post.cc index 9f7476d1..64bdde83 100644 --- a/src/py_post.cc +++ b/src/py_post.cc @@ -87,9 +87,10 @@ void export_post() class_< post_t::xdata_t > ("PostingXData") #if 1 - .def("flags", &supports_flags<uint_least16_t>::flags) + .add_property("flags", + &supports_flags<uint_least16_t>::flags, + &supports_flags<uint_least16_t>::set_flags) .def("has_flags", &supports_flags<uint_least16_t>::has_flags) - .def("set_flags", &supports_flags<uint_least16_t>::set_flags) .def("clear_flags", &supports_flags<uint_least16_t>::clear_flags) .def("add_flags", &supports_flags<uint_least16_t>::add_flags) .def("drop_flags", &supports_flags<uint_least16_t>::drop_flags) |