summaryrefslogtreecommitdiff
path: root/format.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-09-08 21:21:21 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-09-08 21:21:21 -0400
commit72d69d3ec90c1e0a3565d475a092d0f2051bd776 (patch)
treeb82321de88bcd04ed32cf63f368a3365fcad3dd0 /format.cc
parent3d4259e6d0ed01425ba9c35f3866fc298631c9e8 (diff)
downloadfork-ledger-72d69d3ec90c1e0a3565d475a092d0f2051bd776.tar.gz
fork-ledger-72d69d3ec90c1e0a3565d475a092d0f2051bd776.tar.bz2
fork-ledger-72d69d3ec90c1e0a3565d475a092d0f2051bd776.zip
Python fixes; starting adding support for using item_handlers in python
Diffstat (limited to 'format.cc')
-rw-r--r--format.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/format.cc b/format.cc
index d99f9824..e6086b44 100644
--- a/format.cc
+++ b/format.cc
@@ -431,3 +431,23 @@ bool format_account::display_account(const account_t& account,
}
} // namespace ledger
+
+#ifdef USE_BOOST_PYTHON
+
+#include <boost/python.hpp>
+
+using namespace boost::python;
+using namespace ledger;
+
+void export_format()
+{
+#if 0
+ class_< format_transactions > ("FormatTransactions")
+ .def(init<item_handler<transaction_t> *>())
+ .def("flush", &format_transactions::flush)
+ .def("__call__", &format_transactions::operator());
+ ;
+#endif
+}
+
+#endif // USE_BOOST_PYTHON