Extensions: Revert few changes after restructuring

This commit is contained in:
Stefan Tröger
2016-09-21 18:47:04 +02:00
committed by wmayer
parent b7d2943217
commit 558e128b39
10 changed files with 25 additions and 48 deletions

View File

@@ -243,10 +243,8 @@ 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 ){
Base::Console().Message("Dict add property: %s\n",it->first.c_str());
for ( std::map<std::string,App::Property*>::iterator it = Map.begin(); it != Map.end(); ++it )
PyDict_SetItem(dict, PyString_FromString(it->first.c_str()), PyString_FromString(""));
}
if (PyErr_Occurred()) {
Py_DECREF(dict);
dict = NULL;