From b964da039404df73939fe24452ef02cb816b6fa3 Mon Sep 17 00:00:00 2001 From: apo Date: Thu, 2 Feb 2006 10:17:22 +0000 Subject: [PATCH] Fix for Bug IPAL11212 omniORB Error and AttributeError (set theIsAutoDelete input parameter to zero by default) --- src/VISU_SWIG/visu.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 = [] -- 2.39.2