]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
PR: merge from branch BR_OCC_For_3_1_0b1 tag mergeto_BR_UT_V310a3_01dec05
authorprascle <prascle>
Fri, 2 Dec 2005 09:00:59 +0000 (09:00 +0000)
committerprascle <prascle>
Fri, 2 Dec 2005 09:00:59 +0000 (09:00 +0000)
INSTALL
bin/VERSION
bin/killSalomeWithPort.py
bin/runSalome.py
salome_adm/unix/config_files/check_qt.m4
src/NamingService/SALOME_NamingServicePy.py
src/SALOMEDS/SALOMEDS_StudyBuilder_i.cxx
src/SALOMEDS/SALOME_DriverPy.py

diff --git a/INSTALL b/INSTALL
index bf7c941f0c4da08c341ed72c16b8388b70d583b3..526e28e9f9c72b2cf0532e985e4b02fee601aa7e 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -1,4 +1,4 @@
-This is the version 3.1.0a2 of KERNEL
+This is the version 3.1.0b1 of KERNEL
 Previous versions :
         - 3.0.0
         - 2.2.4
index 509227443d169d30493267a20f9501e2b6f99602..3775769376481f8d7f863efe4d8e0aff0fd2c9c0 100755 (executable)
@@ -1 +1 @@
-THIS IS SALOME - KERNEL VERSION: 3.1.0a2
+THIS IS SALOME - KERNEL VERSION: 3.1.0b1
index 404c9ef8f56f517c0b83f7e888c8fdfc8bb4970f..e52a25f883fec97a6273a12c1389926f73042fc2 100755 (executable)
@@ -3,16 +3,16 @@ import os, sys, pickle, signal, commands
 
 def getPiDict(port,appname='salome',full=True):
     from Utils_Identity import getShortHostName
-    
-    if os.getenv("HOSTNAME") == None:
-        if os.getenv("HOST") == None:
-            os.environ["HOSTNAME"]=getShortHostName()
-        else:
-            os.environ["HOSTNAME"]=os.getenv("HOST")
+
+    host = os.getenv("HOSTNAME")
+    if not host:
+        host = os.getenv("HOST")
+    if not host:
+        host = getShortHostName()
 
     filedict = []
     filedict.append( os.getenv('USER') )          # user name
-    filedict.append( os.getenv('HOSTNAME') )      # host name
+    filedict.append( host )                       # host name
     filedict.append( str(port) )                  # port number
     filedict.append( appname.upper() )            # application name
     filedict.append( 'pidict' )                   # constant part
index 94e17db922b19830b9a6057b945a4abdd5de520a..c4773d189c718681464821f4209195be5c7574ae 100755 (executable)
@@ -408,6 +408,11 @@ class SessionServer(Server):
             self.SCMD2+=['GUI']
         if self.args['splash']:
             self.SCMD2+=['SPLASH']
+        if self.args.has_key('modules'):
+            self.SCMD2+=['--modules (']
+            for mod in self.args['modules']:
+                self.SCMD2+=[mod + ':']
+            self.SCMD2+=[')']    
 
     def setpath(self,modules_list,modules_root_dir):
         cata_path=[]
@@ -610,6 +615,7 @@ def startSalome(args, modules_list, modules_root_dir):
     #
     # Lancement Session Server
     #
+
     mySessionServ = SessionServer(args)
     mySessionServ.setpath(modules_list,modules_root_dir)
     mySessionServ.run()
index 3faa1e990dd1076a526628175ecb53028d9c20e0..ab2869c21b1cc31c76d888a91a7d219ff72715fe 100644 (file)
@@ -104,8 +104,8 @@ then
     AC_MSG_RESULT(QTDIR environment variable may be wrong)
   else
     AC_MSG_RESULT(yes)
-    QT_INCLUDES="-I${QT_ROOT}/include${QTINC} -DQT_THREAD_SUPPORT"
-    QT_MT_INCLUDES="-I${QT_ROOT}/include${QTINC} -DQT_THREAD_SUPPORT"
+    QT_INCLUDES="-I${QT_ROOT}/include${QTINC} -DQT_THREAD_SUPPORT -DQT_CLEAN_NAMESPACE"
+    QT_MT_INCLUDES="-I${QT_ROOT}/include${QTINC} -DQT_THREAD_SUPPORT -DQT_CLEAN_NAMESPACE"
   fi
 fi
 
index ab7f2050d1a6e8ab35a2cf71fba50aca1ceffd84..8c36cf0183b3f121b107e7e38a7328b3f0914f20 100644 (file)
@@ -50,7 +50,7 @@ class SALOME_NamingServicePy_i:
         self._orb = orb
         # initialize root context and current context
        ok = 0
-       steps = 40
+       steps = 240
        while steps > 0 and ok == 0:
          try:
             obj =self._orb.resolve_initial_references("NameService")
@@ -68,7 +68,7 @@ class SALOME_NamingServicePy_i:
            MESSAGE(" Name service not found")
          time.sleep(0.25)
          steps = steps - 1
-        if steps == 0: 
+        if steps == 0 and self._root_context is None
           MESSAGE ( "Name Service Reference is invalid" )
           sys.exit(1)
     #-------------------------------------------------------------------------
index a020990f53e7b05b578c99ef4d6038bd74a44b99..8e916a7f5e13c08e2cc9ca416f7edda22c8f41ba 100644 (file)
@@ -206,9 +206,8 @@ SALOMEDS::GenericAttribute_ptr SALOMEDS_StudyBuilder_i::FindOrCreateAttribute(SA
 {
   SALOMEDS::Locker lock;
   Handle(SALOMEDSImpl_SObject) aSO;
-  char* anID = anObject->GetID();  
-  aSO = Handle(SALOMEDSImpl_Study)::DownCast(_impl->GetOwner())->GetSObject(anID);
-  delete [] anID;
+  CORBA::String_var anID = anObject->GetID();
+  aSO = Handle(SALOMEDSImpl_Study)::DownCast(_impl->GetOwner())->GetSObject(anID.inout());
   Handle(TDF_Attribute) anAttr;
   try {
      anAttr = _impl->FindOrCreateAttribute(aSO, TCollection_AsciiString((char*)aTypeOfAttribute));
index c92c9fc335dc0d6a84176ebf3f2561e9c1fbfd5e..d1f1c4e27b13339b45975275fb9067c59d1a44f9 100644 (file)
@@ -6,7 +6,6 @@ class SALOME_DriverPy_i(SALOMEDS__POA.Driver):
     Should be inherited by any Python module's engine
     to provide persistence mechanism.
     """
-
     def __init__ (self, componentDataType):
         print "SALOME_DriverPy.__init__: ",componentDataType
         self._ComponentDataType = componentDataType