| 144 | } |
| 145 | |
| 146 | PyObject* PropertyContainerPy::getTypeIdOfProperty(PyObject* args) |
| 147 | { |
| 148 | char* pstr {}; |
| 149 | if (!PyArg_ParseTuple(args, "s", &pstr)) { |
| 150 | return nullptr; |
| 151 | } |
| 152 | |
| 153 | Property* prop = getPropertyContainerPtr()->getPropertyByName(pstr); |
| 154 | if (!prop) { |
| 155 | PyErr_Format(PyExc_AttributeError, "Property container has no property '%s'", pstr); |
| 156 | return nullptr; |
| 157 | } |
| 158 | |
| 159 | Py::String str = Base::toPyString(prop->getTypeId().getName()); |
| 160 | return Py::new_reference_to(str); |
| 161 | } |
| 162 | |
| 163 | PyObject* PropertyContainerPy::setEditorMode(PyObject* args) |
| 164 | { |
nothing calls this directly
no test coverage detected