| 866 | } |
| 867 | |
| 868 | PyObject* DocumentObjectPy::getParent(PyObject* args) |
| 869 | { |
| 870 | if (!PyArg_ParseTuple(args, "")) { |
| 871 | return nullptr; |
| 872 | } |
| 873 | |
| 874 | try { |
| 875 | auto grp = getDocumentObjectPtr()->getFirstParent(); |
| 876 | if (!grp) { |
| 877 | Py_INCREF(Py_None); |
| 878 | return Py_None; |
| 879 | } |
| 880 | return grp->getPyObject(); |
| 881 | } |
| 882 | catch (const Base::Exception& e) { |
| 883 | throw Py::RuntimeError(e.what()); |
| 884 | } |
| 885 | } |
| 886 | |
| 887 | Py::Boolean DocumentObjectPy::getMustExecute() const |
| 888 | { |
nothing calls this directly
no test coverage detected