diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index 43aeac78..7e0846b1 100644 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -319,7 +319,7 @@ class Service: dates = u" à partir d%s %s" % (dates.startswith(u"maintenant") and u"e" or u"u", dates) return (u"%s(%s)%s" % (self.nom, - u','.join(self.args), + u','.join([i.decode("UTF-8") for i in self.args]), dates)).replace(u" et maintenant", u"") def __str__(self): @@ -1298,7 +1298,7 @@ class BaseClasseCrans(CransLdap): vidns.append(int(r[4:])) if self.idn == 'fid' or self.idn == 'aid': # Pour une facture on prend un nouveau numéro - vidn = max([0] + vidns)+1 + vidn = max([0] + vidns) + 1 else: # Sinon on prend le premier libre while vidn in vidns: