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
pb de check box
[tools/eficas.git]
/
Ihm
/
I_OBJECT.py
diff --git
a/Ihm/I_OBJECT.py
b/Ihm/I_OBJECT.py
index 3612981368823334dfc0c5581c0f62ea29e017a0..41e68469bf1b322e06aff2f868cc11896e480519 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
@@
-110,10
+110,10
@@
class OBJECT:
def get_genealogie_precise(self):
if self.parent:
l=self.parent.get_genealogie_precise()
def get_genealogie_precise(self):
if self.parent:
l=self.parent.get_genealogie_precise()
- 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_genealogie(self):
"""
def get_genealogie(self):
"""
@@
-122,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):
"""
@@
-134,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).decode('latin-1','ignore')
+ return c
except:
#else:
try :
except:
#else:
try :
- return getattr(self.definition,"fr")
+ c=getattr(self.definition,"fr").decode('latin-1','ignore')
+ return c
except :
return ''
except :
return ''