From: jfa Date: Tue, 29 May 2007 07:50:26 +0000 (+0000) Subject: NPAL15643: EDF402: Bug when saving PYHELLO object. X-Git-Tag: T15881~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=13deb58b571dd5e319bc8e2f08a8d87b7820b545;p=samples%2Fpyhello.git NPAL15643: EDF402: Bug when saving PYHELLO object. --- diff --git a/src/PYHELLOGUI/PYHELLOGUI.py b/src/PYHELLOGUI/PYHELLOGUI.py index 8144c35..af4ce65 100644 --- a/src/PYHELLOGUI/PYHELLOGUI.py +++ b/src/PYHELLOGUI/PYHELLOGUI.py @@ -25,6 +25,8 @@ from LifeCycleCORBA import * import SALOMEDS import SALOMEDS_Attributes_idl +import PYHELLO_ORB + ################################################ # module name __MODULE_NAME__ = "PYHELLO" @@ -60,7 +62,6 @@ studyManager = obj._narrow( SALOMEDS.StudyManager ) # --- get PYHELLO engine --- def _getEngine(): - import PYHELLO_ORB engine = lcc.FindOrLoadComponent( "FactoryServerPy", __MODULE_NAME__ ) return engine @@ -94,8 +95,7 @@ def _findOrCreateComponent(): attr = builder.FindOrCreateAttribute( father, "AttributeLocalID" ) attr.SetValue( __MODULE_ID__ ) try: - ### The following line is commented because it causes crashes ! ### - ### builder.DefineComponentInstance( father, _getEngine() ) + builder.DefineComponentInstance( father, _getEngine() ) pass except: pass