diff --git a/src/App/DocumentPyImp.cpp b/src/App/DocumentPyImp.cpp index ca119fecde..cd1ace8152 100644 --- a/src/App/DocumentPyImp.cpp +++ b/src/App/DocumentPyImp.cpp @@ -116,7 +116,7 @@ PyObject* DocumentPy::removeProperty(PyObject* args) std::string DocumentPy::representation() const { std::stringstream str; - str << ""; + str << "getName() << "' (" << getDocumentPtr()->Label.getValue() << ") >"; return str.str(); } diff --git a/src/Gui/DocumentPyImp.cpp b/src/Gui/DocumentPyImp.cpp index 7f20f09710..c57aeeeb5b 100644 --- a/src/Gui/DocumentPyImp.cpp +++ b/src/Gui/DocumentPyImp.cpp @@ -49,7 +49,7 @@ using namespace Gui; std::string DocumentPy::representation() const { std::stringstream str; - str << ""; + str << "getDocument()->getName() << ">"; return str.str(); } diff --git a/src/Gui/TaskView/TaskDialogPython.cpp b/src/Gui/TaskView/TaskDialogPython.cpp index 73980d06cc..98db82de1a 100644 --- a/src/Gui/TaskView/TaskDialogPython.cpp +++ b/src/Gui/TaskView/TaskDialogPython.cpp @@ -364,7 +364,9 @@ TaskDialogPy::~TaskDialogPy() = default; Py::Object TaskDialogPy::repr() { - return Py::String("Task Dialog"); + std::stringstream str; + str << "getDocumentName() << "' >"; + return Py::String( str.str() ); } Py::Object TaskDialogPy::getattr(const char * attr)