From: Jean-Philippe ARGAUD Date: Wed, 7 Jun 2017 20:58:15 +0000 (+0200) Subject: Python 3 compatibility improvement (encoding) X-Git-Tag: V8_4_0~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=123f599502e576ad633c66e22fdaffd9172142c5;p=modules%2Fadao.git Python 3 compatibility improvement (encoding) --- diff --git a/src/daEficas/prefs_ADAO.py.in b/src/daEficas/prefs_ADAO.py.in index 041554a..f7db3b4 100644 --- a/src/daEficas/prefs_ADAO.py.in +++ b/src/daEficas/prefs_ADAO.py.in @@ -48,7 +48,7 @@ initialdir=os.environ["PWD"] if sys.version.split()[0] < '3': # ===== Specifique : redefinition de l'encoding avant le Python 3 ! JPA reload(sys) - sys.setdefaultencoding('latin1') + sys.setdefaultencoding('utf-8') # ===== Specifique : pour les suivantes 8_x ! Enlever pour les 9_x ! JPA # 19/05/2017 : Redefinition du hook de "sys" present dans def _custom_except_hook(exc_type, exc_value, exc_traceback): @@ -70,4 +70,5 @@ closeFrameRechercheCommande = True closeEntete = True closeArbre = True taille = 800 +nombreDeBoutonParLigne = 2 diff --git a/src/daSalome/daGUI/daEficasWrapper/adaoEficasWrapper.py b/src/daSalome/daGUI/daEficasWrapper/adaoEficasWrapper.py index 9020be3..1324e49 100644 --- a/src/daSalome/daGUI/daEficasWrapper/adaoEficasWrapper.py +++ b/src/daSalome/daGUI/daEficasWrapper/adaoEficasWrapper.py @@ -181,7 +181,7 @@ class AdaoEficasWrapper(eficasSalome.MyEficas): # ####### - def addEWObserver(self, observer): + def addObserver(self, observer): """ In fact, only one observer may be defined for the moment. """