summaryrefslogtreecommitdiff
path: root/src/py_post.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/py_post.cc')
-rw-r--r--src/py_post.cc5
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)