| 218 | } |
| 219 | |
| 220 | void FeaturePythonImp::onDocumentRestored() |
| 221 | { |
| 222 | _FC_PY_CALL_CHECK(onDocumentRestored, return); |
| 223 | |
| 224 | // Run the execute method of the proxy object. |
| 225 | Base::PyGILStateLocker lock; |
| 226 | try { |
| 227 | if (has__object__) { |
| 228 | Base::pyCall(py_onDocumentRestored.ptr()); |
| 229 | } |
| 230 | else { |
| 231 | Py::Tuple args(1); |
| 232 | args.setItem(0, Py::Object(object->getPyObject(), true)); |
| 233 | Base::pyCall(py_onDocumentRestored.ptr(), args.ptr()); |
| 234 | } |
| 235 | } |
| 236 | catch (Py::Exception&) { |
| 237 | Base::PyException e; // extract the Python error text |
| 238 | e.reportException(); |
| 239 | } |
| 240 | } |
| 241 | |
| 242 | void FeaturePythonImp::unsetupObject() |
| 243 | { |
nothing calls this directly
no test coverage detected