mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-27 14:50:33 +05:00
PR: comment debug print
This commit is contained in:
parent
00f655d884
commit
bf3a3fc081
@ -506,7 +506,7 @@ class geomBuilder(object, GEOM._objref_GEOM_Gen):
|
|||||||
global geom
|
global geom
|
||||||
global doLcc
|
global doLcc
|
||||||
global created
|
global created
|
||||||
print "__new__ ", engine, geom, doLcc, created
|
#print "__new__ ", engine, geom, doLcc, created
|
||||||
if geom is None:
|
if geom is None:
|
||||||
# geom engine is either retrieved from engine, or created
|
# geom engine is either retrieved from engine, or created
|
||||||
geom = engine
|
geom = engine
|
||||||
@ -521,18 +521,18 @@ class geomBuilder(object, GEOM._objref_GEOM_Gen):
|
|||||||
# FindOrLoadComponent called:
|
# FindOrLoadComponent called:
|
||||||
# 1. CORBA resolution of server
|
# 1. CORBA resolution of server
|
||||||
# 2. the __new__ method is called again
|
# 2. the __new__ method is called again
|
||||||
print "FindOrLoadComponent ", engine, geom, doLcc, created
|
#print "FindOrLoadComponent ", engine, geom, doLcc, created
|
||||||
geom = lcc.FindOrLoadComponent( "FactoryServer", "GEOM" )
|
geom = lcc.FindOrLoadComponent( "FactoryServer", "GEOM" )
|
||||||
else:
|
else:
|
||||||
# FindOrLoadComponent not called
|
# FindOrLoadComponent not called
|
||||||
if geom is None:
|
if geom is None:
|
||||||
# geomBuilder instance is created from lcc.FindOrLoadComponent
|
# geomBuilder instance is created from lcc.FindOrLoadComponent
|
||||||
created = True
|
created = True
|
||||||
print "super ", engine, geom, doLcc, created
|
#print "super ", engine, geom, doLcc, created
|
||||||
geom = super(geomBuilder,cls).__new__(cls)
|
geom = super(geomBuilder,cls).__new__(cls)
|
||||||
else:
|
else:
|
||||||
# geom engine not created: existing engine found
|
# geom engine not created: existing engine found
|
||||||
print "existing ", engine, geom, doLcc, created
|
#print "existing ", engine, geom, doLcc, created
|
||||||
pass
|
pass
|
||||||
|
|
||||||
return geom
|
return geom
|
||||||
@ -11966,7 +11966,7 @@ import omniORB
|
|||||||
omniORB.registerObjref(GEOM._objref_GEOM_Gen._NP_RepositoryId, geomBuilder)
|
omniORB.registerObjref(GEOM._objref_GEOM_Gen._NP_RepositoryId, geomBuilder)
|
||||||
|
|
||||||
def New( study, instance=None):
|
def New( study, instance=None):
|
||||||
print "New geomBuilder ", study, instance
|
#print "New geomBuilder ", study, instance
|
||||||
global engine
|
global engine
|
||||||
global geom
|
global geom
|
||||||
global doLcc
|
global doLcc
|
||||||
|
Loading…
Reference in New Issue
Block a user