Salome HOME
projects
/
tools
/
eficas.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
commentaire
[tools/eficas.git]
/
Ihm
/
I_OBJECT.py
diff --git
a/Ihm/I_OBJECT.py
b/Ihm/I_OBJECT.py
index 6dd26a6446d64fde80c757fbbcd8cce63f707606..48c444c2d223fdcf0513c6456adbeec19767e2c7 100644
(file)
--- a/
Ihm/I_OBJECT.py
+++ b/
Ihm/I_OBJECT.py
@@
-19,10
+19,10
@@
#
"""
"""
#
"""
"""
-import string
+from __future__ import absolute_import
import Noyau
import Noyau
-import CONNECTOR
+
from .
import CONNECTOR
class OBJECT:
from Noyau.N_CO import CO
class OBJECT:
from Noyau.N_CO import CO
@@
-107,6
+107,14
@@
class OBJECT:
"""
return [],[]
"""
return [],[]
+ def get_genealogie_precise(self):
+ if self.parent:
+ l=self.parent.get_genealogie_precise()
+ l.append(self.nom.strip())
+ return l
+ else:
+ return [self.nom.strip()]
+
def get_genealogie(self):
"""
Retourne la liste des noms des ascendants (noms de MCSIMP,MCFACT,MCBLOC
def get_genealogie(self):
"""
Retourne la liste des noms des ascendants (noms de MCSIMP,MCFACT,MCBLOC
@@
-114,10
+122,10
@@
class OBJECT:
"""
if self.parent:
l=self.parent.get_genealogie()
"""
if self.parent:
l=self.parent.get_genealogie()
- l.append(s
tring.strip(self.nom
))
+ l.append(s
elf.nom.strip(
))
return l
else:
return l
else:
- return [s
tring.strip(self.nom
)]
+ return [s
elf.nom.strip(
)]
def get_fr(self):
"""
def get_fr(self):
"""
@@
-126,11
+134,13
@@
class OBJECT:
"""
try:
#if 1 :
"""
try:
#if 1 :
- return getattr(self.definition,self.jdc.lang)
+ c=getattr(self.definition,self.jdc.lang)
+ return c
except:
#else:
try :
except:
#else:
try :
- return getattr(self.definition,"fr")
+ c=getattr(self.definition,"fr")
+ return c
except :
return ''
except :
return ''