+ detect from Python whether a document is modified, give option to suppress warning from SendMsgToActiveView

This commit is contained in:
wmayer
2014-02-24 11:30:27 +01:00
parent b0f61652f4
commit effedb5d1c
3 changed files with 18 additions and 4 deletions

View File

@@ -321,6 +321,11 @@ Py::Object DocumentPy::getDocument(void) const
}
}
Py::Boolean DocumentPy::getModified(void) const
{
return Py::Boolean(getDocumentPtr()->isModified());
}
PyObject *DocumentPy::getCustomAttributes(const char* attr) const
{
// Note: Here we want to return only a document object if its