-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
-THIS IS SALOME - KERNEL VERSION: 3.1.0a2
+THIS IS SALOME - KERNEL VERSION: 3.1.0b1
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
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=[]
#
# Lancement Session Server
#
+
mySessionServ = SessionServer(args)
mySessionServ.setpath(modules_list,modules_root_dir)
mySessionServ.run()
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
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")
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)
#-------------------------------------------------------------------------
{
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));
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