diff --git a/attributs.py b/attributs.py index d600f56..f43d22a 100644 --- a/attributs.py +++ b/attributs.py @@ -409,7 +409,7 @@ class blacklist(Attr): 'actif' : int(bl_debut) < now and (bl_fin == '-' or int(bl_fin) > now) } def __unicode__(self): - return u'$%(debut)s$%(fin)s$%(type)s$%(comm)s' % self.value + return u'%(debut)s$%(fin)s$%(type)s$%(comm)s' % self.value class historique(Attr): singlevalue = False diff --git a/lc_ldap.py b/lc_ldap.py index 3bc5111..f9256d6 100644 --- a/lc_ldap.py +++ b/lc_ldap.py @@ -346,7 +346,7 @@ class CransLdapObject(object): # On attrify cldif = self.attrs.copy() cldif[attr] = new_vals - new_vals = [ attrify(val, attr, cldif, conn) for val in new_vals ] + new_vals = [ attrify(val, attr, cldif, self.conn) for val in new_vals ] # Si ça passe, on effectue les modifications old_vals = [ str(val) for val in self.attrs.get(attr, []) ]