Still cleaning up related to ownership histories. See #1399.

This commit is contained in:
Dion Moult
2021-03-25 16:32:43 +11:00
parent 489a248e9a
commit 6d641aaac1
6 changed files with 45 additions and 45 deletions
@@ -11,6 +11,8 @@ class Usecase:
self.settings[key] = value
def execute(self):
self.settings["person"] = ifcopenshell.api.owner.settings.get_person()
self.settings["organisation"] = ifcopenshell.api.owner.settings.get_organisation()
if self.file.schema != "IFC2X3":
if not self.settings["person"] or not self.settings["organisation"]:
return
@@ -22,7 +24,7 @@ class Usecase:
"OwningUser": user,
"OwningApplication": application,
"State": "READWRITE",
"ChangeAction": self.settings["ChangeAction"] or "ADDED",
"ChangeAction": "ADDED",
"LastModifiedDate": int(time.time()),
"LastModifyingUser": user,
"LastModifyingApplication": application,