| 920 | } |
| 921 | |
| 922 | PyObject* DocumentObjectPy::getElementMapVersion(PyObject* args) const |
| 923 | { |
| 924 | const char* name; |
| 925 | PyObject* restored = Py_False; |
| 926 | if (!PyArg_ParseTuple(args, "s|O", &name, &restored)) { |
| 927 | return NULL; |
| 928 | } |
| 929 | |
| 930 | Property* prop = getDocumentObjectPtr()->getPropertyByName(name); |
| 931 | if (!prop) { |
| 932 | throw Py::ValueError("property not found"); |
| 933 | } |
| 934 | return Py::new_reference_to( |
| 935 | Py::String(getDocumentObjectPtr()->getElementMapVersion(prop, Base::asBoolean(restored)))); |
| 936 | } |
| 937 | |
| 938 | PyObject* DocumentObjectPy::getCustomAttributes(const char* attr) const |
| 939 | { |
nothing calls this directly
no test coverage detected