+ Make transient directory of the form ExeName_Doc_{UUID}_{HASH}_{PID}

+ Set some properties in Document read-only

+ Implement Document::saveAs

+ Fix PropertyUUID::setValue()

+ Add a field for UUID in document information panel
This commit is contained in:
wmayer
2013-05-04 03:16:34 +02:00
parent 61ba27f6ef
commit eafd67e74d
9 changed files with 216 additions and 112 deletions

View File

@@ -1348,8 +1348,15 @@ void PropertyUUID::setPyObject(PyObject *value)
throw Py::TypeError(error);
}
// assign the string
setValue(string);
try {
// assign the string
Base::Uuid uid;
uid.setValue(string);
setValue(uid);
}
catch (const std::exception& e) {
throw Py::RuntimeError(e.what());
}
}
void PropertyUUID::Save (Base::Writer &writer) const