+ extend State attribute of document object

This commit is contained in:
wmayer 2014-12-17 18:20:30 +01:00
parent c1823efe38
commit d8722070b8

View File

@ -88,6 +88,14 @@ Py::List DocumentObjectPy::getState(void) const
uptodate = false;
list.append(Py::String("Invalid"));
}
if (object->isRecomputing()) {
uptodate = false;
list.append(Py::String("Recompute"));
}
if (object->isRestoring()) {
uptodate = false;
list.append(Py::String("Restore"));
}
if (uptodate) {
list.append(Py::String("Up-to-date"));
}