history_gen: garde login dans l'appel récursif
This commit is contained in:
parent
f0de8bd515
commit
f4318415e8
1 changed files with 2 additions and 1 deletions
|
@ -312,7 +312,8 @@ class CransLdapObject(object):
|
||||||
"Génère une ligne d'historique pour l'arribut attr ou une ligne par attributs pour l'objet courant"
|
"Génère une ligne d'historique pour l'arribut attr ou une ligne par attributs pour l'objet courant"
|
||||||
if attr is None:
|
if attr is None:
|
||||||
for attr in self.keys():
|
for attr in self.keys():
|
||||||
self.history_gen(attr)
|
self.history_gen(attr, login=login)
|
||||||
|
return
|
||||||
def partial_name(name, max_len=14, start=7, end=7):
|
def partial_name(name, max_len=14, start=7, end=7):
|
||||||
if len(name) > max_len:
|
if len(name) > max_len:
|
||||||
return "%s…%s" % (name[:start], name[-end:])
|
return "%s…%s" % (name[:start], name[-end:])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue