summaryrefslogtreecommitdiff
path: root/valexpr.cc
diff options
context:
space:
mode:
Diffstat (limited to 'valexpr.cc')
-rw-r--r--valexpr.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/valexpr.cc b/valexpr.cc
index 46c30e06..862f730d 100644
--- a/valexpr.cc
+++ b/valexpr.cc
@@ -945,6 +945,16 @@ void export_valexpr()
def("parse_value_expr", py_parse_value_expr,
return_value_policy<manage_new_object>());
+
+ class_< item_predicate<transaction_t> >
+ ("TransactionPredicate", init<std::string>())
+ .def("__call__", &item_predicate<transaction_t>::operator())
+ ;
+
+ class_< item_predicate<account_t> >
+ ("AccountPredicate", init<std::string>())
+ .def("__call__", &item_predicate<account_t>::operator())
+ ;
}
#endif // USE_BOOST_PYTHON