in repr() of DocumentObjectPy return the full class name

This commit is contained in:
wmayer
2017-09-10 12:41:14 +02:00
parent 4ca7224312
commit cebe4d17ab

View File

@@ -37,7 +37,10 @@ using namespace App;
// returns a string which represent the object e.g. when printed in python
std::string DocumentObjectPy::representation(void) const
{
return std::string("<Document object>");
DocumentObject* object = this->getDocumentObjectPtr();
std::stringstream str;
str << "<" << object->getTypeId().getName() << " object>";
return str.str();
}
Py::String DocumentObjectPy::getName(void) const