[attributs, lc_ldap] corrections mineures
This commit is contained in:
parent
c4ddc86fc9
commit
bd61e46007
2 changed files with 2 additions and 2 deletions
|
@ -409,7 +409,7 @@ class blacklist(Attr):
|
||||||
'actif' : int(bl_debut) < now and (bl_fin == '-' or int(bl_fin) > now) }
|
'actif' : int(bl_debut) < now and (bl_fin == '-' or int(bl_fin) > now) }
|
||||||
|
|
||||||
def __unicode__(self):
|
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):
|
class historique(Attr):
|
||||||
singlevalue = False
|
singlevalue = False
|
||||||
|
|
|
@ -346,7 +346,7 @@ class CransLdapObject(object):
|
||||||
# On attrify
|
# On attrify
|
||||||
cldif = self.attrs.copy()
|
cldif = self.attrs.copy()
|
||||||
cldif[attr] = new_vals
|
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
|
# Si ça passe, on effectue les modifications
|
||||||
old_vals = [ str(val) for val in self.attrs.get(attr, []) ]
|
old_vals = [ str(val) for val in self.attrs.get(attr, []) ]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue