Extensions: Show up in the python interface

This commit is contained in:
Stefan Tröger
2016-06-01 08:37:28 +02:00
committed by wmayer
parent 6fa964c53f
commit 552fe52774
21 changed files with 435 additions and 258 deletions

View File

@@ -243,8 +243,10 @@ PyObject *PropertyContainerPy::getCustomAttributes(const char* attr) const
getPropertyContainerPtr()->getPropertyMap(Map);
PyObject *dict = PyDict_New();
if (dict) {
for ( std::map<std::string,App::Property*>::iterator it = Map.begin(); it != Map.end(); ++it )
for ( std::map<std::string,App::Property*>::iterator it = Map.begin(); it != Map.end(); ++it ){
Base::Console().Message("Dict add property: %s\n",it->first.c_str());
PyDict_SetItem(dict, PyString_FromString(it->first.c_str()), PyString_FromString(""));
}
if (PyErr_Occurred()) {
Py_DECREF(dict);
dict = NULL;