18 #include <boost/python.hpp>
28 using namespace boost::python;
37 std::auto_ptr<ObserverWrap>,
40 "The base class for classes that can be targets of Observable\n"
47 "The base class for classes that can be target of an Observer\n"
55 using namespace hippodraw;
60 ObserverWrap ( PyObject *
self )
88 object ( handle<> ( borrowed ( detail::wrapper_base_::get_owner(*
this))));
97 #ifndef HAVE_OLD_PYTHON
98 PyGILState_STATE state = PyGILState_Ensure ();
102 call_method < void, const Observable * > (
self.ptr(),
"update", obs );
103 }
catch ( error_already_set & ) {
104 std::cout <<
"ObserverWrap::update: caught error_already_set"
110 PyGILState_Release ( state );