Exemplo n.º 1
0
 def execute(self, context):
     IfcStore.begin_transaction(self)
     self.store_state(context)
     result = self._execute(context)
     IfcStore.add_transaction_operation(self)
     IfcStore.end_transaction(self)
     return result
Exemplo n.º 2
0
 def execute(self, context):
     IfcStore.begin_transaction(self)
     IfcStore.library_file.begin_transaction()
     result = self._execute(context)
     IfcStore.library_file.end_transaction()
     IfcStore.add_transaction_operation(self)
     IfcStore.end_transaction(self)
     return result
Exemplo n.º 3
0
 def execute(self, context):
     IfcStore.begin_transaction(self)
     self.transaction_data = {}
     self.transaction_data["old"] = self.record_state()
     result = self._execute(context)
     self.transaction_data["new"] = self.record_state()
     IfcStore.add_transaction_operation(self)
     IfcStore.end_transaction(self)
     return result
Exemplo n.º 4
0
 def execute(self, context):
     IfcStore.begin_transaction(self)
     old_filepath = IfcStore.library_path
     result = self._execute(context)
     self.transaction_data = {
         "old_filepath": old_filepath,
         "filepath": self.filepath
     }
     IfcStore.add_transaction_operation(self)
     IfcStore.end_transaction(self)
     return result
Exemplo n.º 5
0
 def execute(self, context):
     IfcStore.begin_transaction(self)
     IfcStore.add_transaction_operation(self,
                                        rollback=self.rollback,
                                        commit=lambda data: True)
     self._execute(context)
     self.transaction_data = {"file": tool.Ifc.get()}
     IfcStore.add_transaction_operation(self,
                                        rollback=lambda data: True,
                                        commit=self.commit)
     IfcStore.end_transaction(self)
     return {"FINISHED"}