From 83ca2e79912d308ef7bdc6cfcec5de30aa51c4e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-Elliott=20B=C3=A9cue?= Date: Thu, 27 Aug 2015 12:27:40 +0200 Subject: [PATCH] =?UTF-8?q?Fait=20en=20sorte=20que=20l'unicode=20sandwich?= =?UTF-8?q?=20soit=20respect=C3=A9=20dans=20tout=20history=5Fgen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- objets.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/objets.py b/objets.py index c518676..4099ec3 100644 --- a/objets.py +++ b/objets.py @@ -345,8 +345,8 @@ class CransLdapObject(object): if attr.historique == "full": comm = u"%s (%s -> %s)" % (attr.ldap_name, old_values[0], new_values[0]) elif attr.historique == "partial": - old = partial_name(str(old_values[0])) - new = partial_name(str(new_values[0])) + old = partial_name(unicode(old_values[0])) + new = partial_name(unicode(new_values[0])) comm = u"%s (%s -> %s)" % (attr.ldap_name, old, new) elif attr.historique == "info": comm = u"%s" % attr.ldap_name @@ -355,7 +355,7 @@ class CransLdapObject(object): if attr.historique == "info": comm = u"+%s" % attr.ldap_name elif attr.historique in ["full", "partial"]: - new = str(new_values[0]) + new = unicode(new_values[0]) if attr.historique == "partial": new = partial_name(new) comm = u"%s+%s" % (attr.ldap_name, new) @@ -364,7 +364,7 @@ class CransLdapObject(object): if attr.historique == "info": comm = u"-%s" % attr.ldap_name elif attr.historique in ["full", "partial"]: - old = str(old_values[0]) + old = unicode(old_values[0]) if attr.historique == "partial": old = partial_name(old) comm = u"%s-%s" % (attr.ldap_name, old)