Salome HOME
Fix the name of dead groups and fields
authormpv <mpv@opencascade.com>
Mon, 20 Jan 2020 09:19:06 +0000 (12:19 +0300)
committermpv <mpv@opencascade.com>
Mon, 20 Jan 2020 09:19:06 +0000 (12:19 +0300)
src/PY/SHAPERSTUDY.py
src/PY/SHAPERSTUDY_Object.py

index a450ff6b1d30564e1ef406a68014a5a8e7bd340e..0488f83eaee2e38329943ab1000d08e2ad707205 100644 (file)
@@ -333,7 +333,6 @@ class SHAPERSTUDY(SHAPERSTUDY_ORB__POA.Gen,
               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
         
@@ -351,11 +350,9 @@ class SHAPERSTUDY(SHAPERSTUDY_ORB__POA.Gen,
     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 ""
index 9f7fee3e89217675d7b8270078189cf3e8fa9edd..9e69b90d9ae29e12e57d65cdfce48c95bb05c7e6 100755 (executable)
@@ -290,6 +290,7 @@ class SHAPERSTUDY_Object(SHAPERSTUDY_ORB__POA.SHAPER_Object,
               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)