52713: Wrong creation info for ProjectionOnCylinder object

fix Python API of GetCreationInformation()
This commit is contained in:
eap 2015-04-24 18:04:30 +03:00
parent ee311dbb32
commit 354aaa03b1

View File

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