]> SALOME platform Git repositories - modules/eficas.git/commitdiff
Salome HOME
Removed dependency on PAL module
authorRenaud Barate <renaud.barate@edf.fr>
Mon, 11 Oct 2010 12:33:34 +0000 (12:33 +0000)
committerRenaud Barate <renaud.barate@edf.fr>
Mon, 11 Oct 2010 12:33:34 +0000 (12:33 +0000)
adm_local/unix/config_files/check_pal.m4 [deleted file]
configure.in
configure.in.base
src/EFICASGUI/EFICASGUI.py
src/EFICASGUI/eficasSalome.py
src/STUDY/EficasStudy.py

diff --git a/adm_local/unix/config_files/check_pal.m4 b/adm_local/unix/config_files/check_pal.m4
deleted file mode 100644 (file)
index 1a4c55c..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-# Check availability of Salome's PAL binary distribution
-#
-# Author : Guillaume Boulant (CSSI - 03/08/2005)
-#
-
-AC_DEFUN([CHECK_PAL],[
-
-AC_CHECKING(for Pal)
-
-pal_ok=no
-
-AC_ARG_WITH(pal,
-           [  --with-pal=DIR               root directory path of PAL build or installation],
-           PAL_DIR="$withval",PAL_DIR="")
-
-if test "x$PAL_DIR" = "x" ; then
-
-# no --with-pal-dir option used
-
-   if test "x$PAL_ROOT_DIR" != "x" ; then
-
-    # PAL_ROOT_DIR environment variable defined
-      PAL_DIR=$PAL_ROOT_DIR
-
-   else
-      AC_MSG_WARN("PAL_ROOT_DIR is not defined")
-   fi
-fi
-
-if test -f ${PAL_DIR}/bin/salome/testAppli ; then
-   pal_ok=yes
-   AC_MSG_RESULT(Using Pal module distribution in ${PAL_DIR})
-
-   if test "x$PAL_ROOT_DIR" = "x" ; then
-      PAL_ROOT_DIR=${PAL_DIR}
-   fi
-   if test "x$PAL_SITE_DIR" = "x" ; then
-      PAL_SITE_DIR=${PAL_ROOT_DIR}
-   fi
-   AC_SUBST(PAL_ROOT_DIR)
-   AC_SUBST(PAL_SITE_DIR)
-
-else
-   AC_MSG_WARN("Cannot find compiled Pal module distribution")
-fi
-
-AC_MSG_RESULT(for Pal: $pal_ok)
-])dnl
index 5350eb97253a7116217d360b4c595ee8ff7581a6..4bf96deeba32dcbace259c441a9f88f6449897a1 100644 (file)
@@ -146,14 +146,6 @@ echo
 
 CHECK_SALOME_GUI
 
-echo
-echo ---------------------------------------------
-echo Testing Pal
-echo ---------------------------------------------
-echo
-
-CHECK_PAL
-
 echo
 echo ---------------------------------------------
 echo Testing Visu
@@ -185,7 +177,7 @@ echo ---------------------------------------------
 echo RunTime Dependencies
 echo ---------------------------------------------
 echo
-variables="Visu_ok pal_ok"
+variables="Visu_ok"
 
 for var in $variables
 do
index 0f2558cfe0c5b0b6908f3795c126f79173898b9a..fd489c873abaabf473ee67a80ecc984bd2f8a9db 100644 (file)
@@ -146,14 +146,6 @@ echo
 
 CHECK_SALOME_GUI
 
-echo
-echo ---------------------------------------------
-echo Testing Pal
-echo ---------------------------------------------
-echo
-
-CHECK_PAL
-
 echo
 echo ---------------------------------------------
 echo Testing Visu
@@ -185,7 +177,7 @@ echo ---------------------------------------------
 echo RunTime Dependencies
 echo ---------------------------------------------
 echo
-variables="Visu_ok pal_ok"
+variables="Visu_ok"
 
 for var in $variables
 do
index 9ba7b85b08aaba39e1ec40224720526676802f90..e721b5f12eec3719b999e447860d12d2ba4e959d 100644 (file)
@@ -11,7 +11,7 @@ from PyQt4.QtCore import *
 import salome
 import SalomePyQt
 
-from pal.studyedit import getStudyEditor
+from salome.kernel.studyedit import getStudyEditor
 
 sgPyQt=SalomePyQt.SalomePyQt()
 
index 0b9486fd124c54a138966b60887a0ed68e634696..3857853fb9b7b94dc4e0328ef47a3769423826ec 100644 (file)
@@ -4,8 +4,8 @@
 import sys, os, re,types
 from PyQt4.QtGui import QMessageBox
 
-from pal.logger import ExtLogger
-logger=ExtLogger( "EFICAS_SRC.EFICASGUI.eficasSalome.py" )
+from salome.kernel.logger import Logger
+logger = Logger( "EFICAS_SRC.EFICASGUI.eficasSalome.py" )
 
 import eficasConfig 
 # eficasConfig definit le EFICAS_ROOT
@@ -28,8 +28,8 @@ import salome
 import SalomePyQt
 
 
-from pal.studyedit import getStudyEditor
-from pal.structelem import StructuralElementManager, InvalidParameterError
+from salome.kernel.studyedit import getStudyEditor
+from salome.geom.structelem import StructuralElementManager, InvalidParameterError
 
 
 # couleur pour visualisation des geometries 
@@ -266,7 +266,7 @@ class MyEficas( qtEficas.Appli ):
         name, msgError = '',''
 
         mySO=self.editor.study.FindObjectID(selectedEntry )
-        from pal.smeshstudytools import SMeshStudyTools
+        from salome.smesh.smeshstudytools import SMeshStudyTools
         monSMeshStudyTools=SMeshStudyTools(self.editor)
         meshSO = monSMeshStudyTools.getMeshFromGroup(mySO)
         if meshSO == None : return name, msgError    
@@ -457,7 +457,7 @@ class MyEficas( qtEficas.Appli ):
                 ok, msgError = True, ''        
         except Exception, exc:
             msgError = "Can't add Eficas file to Salome study tree"
-            logger.exception(msgError)
+            logger.debug(msgError, exc_info = True)
             QMessageBox.warning(self, self.tr("Warning"),
                                 self.tr("%s. Reason:\n%s\n\nSee logs for "
                                         "more details." % (msgError, exc)))
@@ -494,7 +494,7 @@ class MyEficas( qtEficas.Appli ):
                 ok, msgError = self.displayMeshGroups(shapeName)
             else: #geometrie
                 current_color = COLORS[ self.icolor % LEN_COLORS ]                
-                from pal.geomtools import GeomStudyTools
+                from salome.geom.geomtools import GeomStudyTools
                 myGeomTools=GeomStudyTools(self.editor)
                 ok = myGeomTools.displayShapeByName( shapeName, current_color )
                 salome.sg.FitAll()
index 8183cc2f7abf6f1ccb280a3290d57c3b46138532..5570f7989bf4d426df814cf7dc3493c1880c7e81 100644 (file)
@@ -12,7 +12,7 @@ try :
 except :
     pass
 
-from pal.logger import Logger
+from salome.kernel.logger import Logger
 logger=Logger( "EficasStudy" )