| 120 | } |
| 121 | |
| 122 | PyObject* ViewProviderPy::removeProperty(PyObject* args) |
| 123 | { |
| 124 | char* sName; |
| 125 | if (!PyArg_ParseTuple(args, "s", &sName)) { |
| 126 | return nullptr; |
| 127 | } |
| 128 | |
| 129 | try { |
| 130 | bool ok = getViewProviderPtr()->removeDynamicProperty(sName); |
| 131 | return Py_BuildValue("O", (ok ? Py_True : Py_False)); |
| 132 | } |
| 133 | catch (const Base::Exception& e) { |
| 134 | throw Py::RuntimeError(e.what()); |
| 135 | } |
| 136 | } |
| 137 | |
| 138 | PyObject* ViewProviderPy::supportedProperties(PyObject* args) |
| 139 | { |
no test coverage detected