diff options
author | John Wiegley <johnw@newartisans.com> | 2004-09-08 21:21:21 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-09-08 21:21:21 -0400 |
commit | 72d69d3ec90c1e0a3565d475a092d0f2051bd776 (patch) | |
tree | b82321de88bcd04ed32cf63f368a3365fcad3dd0 /format.cc | |
parent | 3d4259e6d0ed01425ba9c35f3866fc298631c9e8 (diff) | |
download | fork-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.cc | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -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 |