| 73 | } |
| 74 | |
| 75 | Py::Object DocumentObjectPy::getDocument() const |
| 76 | { |
| 77 | DocumentObject* object = this->getDocumentObjectPtr(); |
| 78 | Document* doc = object->getDocument(); |
| 79 | if (!doc) { |
| 80 | return Py::None(); |
| 81 | } |
| 82 | else { |
| 83 | return Py::Object(doc->getPyObject(), true); |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | PyObject* DocumentObjectPy::isAttachedToDocument(PyObject* args) const |
| 88 | { |
no test coverage detected