| 181 | } |
| 182 | |
| 183 | PyObject* DocumentObjectPy::touch(PyObject* args) |
| 184 | { |
| 185 | char* propName = nullptr; |
| 186 | if (!PyArg_ParseTuple(args, "|s", &propName)) { |
| 187 | return nullptr; |
| 188 | } |
| 189 | if (propName) { |
| 190 | if (!propName[0]) { |
| 191 | getDocumentObjectPtr()->touch(true); |
| 192 | Py_Return; |
| 193 | } |
| 194 | auto prop = getDocumentObjectPtr()->getPropertyByName(propName); |
| 195 | if (!prop) { |
| 196 | throw Py::RuntimeError("Property not found"); |
| 197 | } |
| 198 | prop->touch(); |
| 199 | Py_Return; |
| 200 | } |
| 201 | |
| 202 | getDocumentObjectPtr()->touch(); |
| 203 | Py_Return; |
| 204 | } |
| 205 | |
| 206 | PyObject* DocumentObjectPy::purgeTouched(PyObject* args) |
| 207 | { |
nothing calls this directly
no test coverage detected