Fait en sorte que l'unicode sandwich soit respecté dans tout history_gen
This commit is contained in:
parent
55eb87dce9
commit
83ca2e7991
1 changed files with 4 additions and 4 deletions
|
@ -345,8 +345,8 @@ class CransLdapObject(object):
|
||||||
if attr.historique == "full":
|
if attr.historique == "full":
|
||||||
comm = u"%s (%s -> %s)" % (attr.ldap_name, old_values[0], new_values[0])
|
comm = u"%s (%s -> %s)" % (attr.ldap_name, old_values[0], new_values[0])
|
||||||
elif attr.historique == "partial":
|
elif attr.historique == "partial":
|
||||||
old = partial_name(str(old_values[0]))
|
old = partial_name(unicode(old_values[0]))
|
||||||
new = partial_name(str(new_values[0]))
|
new = partial_name(unicode(new_values[0]))
|
||||||
comm = u"%s (%s -> %s)" % (attr.ldap_name, old, new)
|
comm = u"%s (%s -> %s)" % (attr.ldap_name, old, new)
|
||||||
elif attr.historique == "info":
|
elif attr.historique == "info":
|
||||||
comm = u"%s" % attr.ldap_name
|
comm = u"%s" % attr.ldap_name
|
||||||
|
@ -355,7 +355,7 @@ class CransLdapObject(object):
|
||||||
if attr.historique == "info":
|
if attr.historique == "info":
|
||||||
comm = u"+%s" % attr.ldap_name
|
comm = u"+%s" % attr.ldap_name
|
||||||
elif attr.historique in ["full", "partial"]:
|
elif attr.historique in ["full", "partial"]:
|
||||||
new = str(new_values[0])
|
new = unicode(new_values[0])
|
||||||
if attr.historique == "partial":
|
if attr.historique == "partial":
|
||||||
new = partial_name(new)
|
new = partial_name(new)
|
||||||
comm = u"%s+%s" % (attr.ldap_name, new)
|
comm = u"%s+%s" % (attr.ldap_name, new)
|
||||||
|
@ -364,7 +364,7 @@ class CransLdapObject(object):
|
||||||
if attr.historique == "info":
|
if attr.historique == "info":
|
||||||
comm = u"-%s" % attr.ldap_name
|
comm = u"-%s" % attr.ldap_name
|
||||||
elif attr.historique in ["full", "partial"]:
|
elif attr.historique in ["full", "partial"]:
|
||||||
old = str(old_values[0])
|
old = unicode(old_values[0])
|
||||||
if attr.historique == "partial":
|
if attr.historique == "partial":
|
||||||
old = partial_name(old)
|
old = partial_name(old)
|
||||||
comm = u"%s-%s" % (attr.ldap_name, old)
|
comm = u"%s-%s" % (attr.ldap_name, old)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue