]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
instance of Parameter can be passed into Geom objects
authorasl <asl@opencascade.com>
Mon, 14 Dec 2009 11:43:05 +0000 (11:43 +0000)
committerasl <asl@opencascade.com>
Mon, 14 Dec 2009 11:43:05 +0000 (11:43 +0000)
src/KERNEL_PY/salome_notebook.py

index e4d37643f4d2fbc4fcfad4ce310b2c64543af6ec..e94c61ff05fb0566e66de17e6fcb0c86d1ac1f45 100644 (file)
@@ -78,8 +78,13 @@ class Notebook:
        """
        Return value of the variable with name "variableName".
        """
+       aParam = None
         aResult = None
-        aParam = self.myNotebook.GetParameter( variableName )
+       if isinstance( variableName, str ):
+            aParam = self.myNotebook.GetParameter( variableName )
+       elif isinstance( variableName, SALOME._objref_Parameter ):
+           aParam = variableName
+           
         if aParam != None:
 
             if aParam.GetType() == SALOME.TReal: