]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
52713: Wrong creation info for ProjectionOnCylinder object
authoreap <eap@opencascade.com>
Fri, 24 Apr 2015 15:04:30 +0000 (18:04 +0300)
committereap <eap@opencascade.com>
Fri, 24 Apr 2015 15:04:30 +0000 (18:04 +0300)
    fix Python API of GetCreationInformation()

src/GEOM_SWIG/geomBuilder.py

index 60304b9876779f448cff80d1516341fdbc2ba00c..ccbad10f6e1362c92019b2635ef515658ecc595d 100644 (file)
@@ -10966,14 +10966,17 @@ class geomBuilder(object, GEOM._objref_GEOM_Gen):
             return aDict
 
         def GetCreationInformation(self, theShape):
-            info = theShape.GetCreationInformation()
-            # operationName
-            opName = info.operationName
-            if not opName: opName = "no info available"
-            res = "Operation: " + opName
-            # parameters
-            for parVal in info.params:
-                res += " \n %s = %s" % ( parVal.name, parVal.value )
+            res = ''
+            infos = theShape.GetCreationInformation()
+            for info in infos:
+                # operationName
+                opName = info.operationName
+                if not opName: opName = "no info available"
+                if res: res += "\n"
+                res += "Operation: " + opName
+                # parameters
+                for parVal in info.params:
+                    res += "\n \t%s = %s" % ( parVal.name, parVal.value )
             return res
 
         ## Get a point, situated at the centre of mass of theShape.