summaryrefslogtreecommitdiff
path: root/src/py_session.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-24 19:48:14 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-24 19:48:14 -0400
commit0814c5a23f44120088b6139bb7bf1f934f1d1057 (patch)
tree1c2132245b93881b42b99aa0dd5b7c5d00aff2e0 /src/py_session.cc
parent3598abf9d235c24618856d4e0d5092e818e6332e (diff)
downloadfork-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.cc11
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);