diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-24 19:48:14 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-24 19:48:14 -0400 |
commit | 0814c5a23f44120088b6139bb7bf1f934f1d1057 (patch) | |
tree | 1c2132245b93881b42b99aa0dd5b7c5d00aff2e0 /src/py_session.cc | |
parent | 3598abf9d235c24618856d4e0d5092e818e6332e (diff) | |
download | fork-ledger-0814c5a23f44120088b6139bb7bf1f934f1d1057.tar.gz fork-ledger-0814c5a23f44120088b6139bb7bf1f934f1d1057.tar.bz2 fork-ledger-0814c5a23f44120088b6139bb7bf1f934f1d1057.zip |
Added a new level of Python integration
Diffstat (limited to 'src/py_session.cc')
-rw-r--r-- | src/py_session.cc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/py_session.cc b/src/py_session.cc index 108dcc3c..df0c6dd8 100644 --- a/src/py_session.cc +++ b/src/py_session.cc @@ -46,14 +46,13 @@ using namespace boost::python; void export_session() { -#if 0 - class_< session_t > ("Session") + class_< session_t, bases<symbol_scope_t>, + shared_ptr<session_t>, boost::noncopyable > ("SessionBase") ; -#endif - //register_optional_to_python<amount_t>(); - - //implicitly_convertible<string, amount_t>(); + class_< python_interpreter_t, bases<session_t>, + shared_ptr<python_interpreter_t>, boost::noncopyable > ("Session") + ; #define EXC_TRANSLATE(type) \ register_exception_translator<type>(&exc_translate_ ## type); |