From 80f481c9f460b880dbbe838cce53e3e42d97dece Mon Sep 17 00:00:00 2001 From: Michel Blockelet Date: Fri, 1 Apr 2011 22:50:44 +0200 Subject: [PATCH] [ldap,gest_crans.py] Correction encodage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ignore-this: 8ad2379ea4865edb91ca98a6090c6a43 Si la mac existait déjà sur le réseau, gest_crans plantait ... darcs-hash:20110401205044-ddb99-66a7e8e63416c61ad9d29dd7424e036aa7cffbc8.gz --- gestion/gest_crans.py | 4 ++-- gestion/ldap_crans.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gestion/gest_crans.py b/gestion/gest_crans.py index 7630514c..305759fe 100644 --- a/gestion/gest_crans.py +++ b/gestion/gest_crans.py @@ -1491,7 +1491,7 @@ def set_machine(machine): if len(c.args)>1 and c.args[1] == 1 and isadm: # Mac en double arg = u'--title "Adresse MAC" ' - arg += u'--yesno "L\'adresse MAC existe déja, continuer ? \n" 0 0' + arg += u'--yesno "L\'adresse MAC existe déjà, continuer ? \n" 0 0' no, res = dialog(arg) if no: return set_machine(machine) @@ -1534,7 +1534,7 @@ def set_machine(machine): # Des erreurs ? if err: arg = u'--title "Paramètres machine" ' - arg += u'--msgbox "%s\n\n" 0 0' % err.decode('ascii', 'ignore') + arg += u'--msgbox "%s\n\n" 0 0' % err dialog(arg) # On redemande return set_machine(machine) diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index c6031d80..8c09f99a 100644 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -2731,7 +2731,7 @@ class Machine(BaseClasseCrans): # La mac serait-elle déjà connue ? if not multi_ok and self.exist('macAddress=%s' % mac): - raise ValueError(u'Mac déja utilisée sur le réseau.', 1) + raise ValueError(u"Mac déjà utilisée sur le réseau.", 1) # La MAC serait-elle une MAC à la con ? if mac == "00:04:4b:80:80:03":