| 240 | } |
| 241 | |
| 242 | void FeaturePythonImp::unsetupObject() |
| 243 | { |
| 244 | _FC_PY_CALL_CHECK(unsetupObject, return); |
| 245 | |
| 246 | // Run the execute method of the proxy object. |
| 247 | Base::PyGILStateLocker lock; |
| 248 | try { |
| 249 | if (has__object__) { |
| 250 | Base::pyCall(py_unsetupObject.ptr()); |
| 251 | } |
| 252 | else { |
| 253 | Py::Tuple args(1); |
| 254 | args.setItem(0, Py::Object(object->getPyObject(), true)); |
| 255 | Base::pyCall(py_unsetupObject.ptr(), args.ptr()); |
| 256 | } |
| 257 | } |
| 258 | catch (Py::Exception&) { |
| 259 | Base::PyException e; // extract the Python error text |
| 260 | e.reportException(); |
| 261 | } |
| 262 | } |
| 263 | |
| 264 | bool FeaturePythonImp::getSubObject(DocumentObject*& ret, |
| 265 | const char* subname, |
nothing calls this directly
no test coverage detected