From: apo Date: Thu, 2 Feb 2006 10:17:22 +0000 (+0000) Subject: Fix for Bug IPAL11212 X-Git-Tag: mergeto_trunk_07Feb06~18 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b964da039404df73939fe24452ef02cb816b6fa3;p=modules%2Fvisu.git Fix for Bug IPAL11212 omniORB Error and AttributeError (set theIsAutoDelete input parameter to zero by default) --- diff --git a/src/VISU_SWIG/visu.py b/src/VISU_SWIG/visu.py index 23cb3fb2..6aade010 100644 --- a/src/VISU_SWIG/visu.py +++ b/src/VISU_SWIG/visu.py @@ -184,7 +184,7 @@ def SObjectToObject(theSObject) : print "SObjectToObject - IOR = ''" return anObj; -def CreatePrsForMed(theVisu, theFileName, thePrsTypeList, thePictureDir, thePictureExt, theIsAutoDelete = 1) : +def CreatePrsForMed(theVisu, theFileName, thePrsTypeList, thePictureDir, thePictureExt, theIsAutoDelete = 0) : # try: global myLifeCycleCORBA print "lcc.FindOrLoadComponent...", @@ -288,7 +288,7 @@ def CreatePrsForMed(theVisu, theFileName, thePrsTypeList, thePictureDir, thePict # except Exception, e: # print str(e) -def CreatePrsForFile(theVisu, theFileName, thePrsTypeList, thePictureDir, thePictureExt, theIsAutoDelete = 1) : +def CreatePrsForFile(theVisu, theFileName, thePrsTypeList, thePictureDir, thePictureExt, theIsAutoDelete = 0) : # try: aVISUObjList = [myLocalStudy, myViewManager, myView] = CreateStudyForMed(theVisu, theFileName) @@ -309,7 +309,7 @@ def CreatePrsForFile(theVisu, theFileName, thePrsTypeList, thePictureDir, thePic # except Exception, e: # print str(e) -def CreatePrsForResult(theVisu, theResult, theView, thePrsTypeList, thePictureDir, thePictureExt, theIsAutoDelete) : +def CreatePrsForResult(theVisu, theResult, theView, thePrsTypeList, thePictureDir, thePictureExt, theIsAutoDelete = 0) : aVISUObjList = None if theIsAutoDelete is not None : aVISUObjList = []