anObj.SetEntry(anId)
anIOR = salome.orb.object_to_string(anObj._this())
__entry2IOR__[anId] = anIOR
- print("Store for entry "+anId+" IOR=", anIOR)
aSubNum = 1
return 1
def LocalPersistentIDToIOR(self, sobject, persistentID, isMultiFile, isASCII):
"Converts persistent ID of the object to its IOR."
global __entry2IOR__
- print("Requires presistent ID="+persistentID)
if persistentID in __entry2IOR__:
aRes = __entry2IOR__[persistentID]
if len(aRes): # set SO from the study, the sobject param is temporary, don't store it
- print("Found res="+str(aRes))
salome.orb.string_to_object(aRes).SetSO(getStudy().FindObjectID(sobject.GetID()))
return aRes
return ""
aDeadGroup.SetSO(aDeadGroupSO)
# 15.01.20 groups and fields names stays the same
#aDeadGroupSO.SetAttrString("AttributeName", aGroupSO.GetName() + " (" + str(anIndex) + ")")
+ aDeadGroupSO.SetAttrString("AttributeName", aGroupSO.GetName())
aDeadGroupObj = aDeadGroup._this()
anIOR = salome.orb.object_to_string(aDeadGroupObj)
aDeadGroupSO.SetAttrString("AttributeIOR", anIOR)