[ressuscite_couteau_suisse] Afficher le vrai dn, c'est mieux
This commit is contained in:
parent
06d97c9aa3
commit
310356eba9
1 changed files with 2 additions and 3 deletions
|
@ -23,9 +23,8 @@ def load(file=None):
|
||||||
return a
|
return a
|
||||||
|
|
||||||
def dump(obj):
|
def dump(obj):
|
||||||
"""Raw-affiche l'objet. En créant le dn à partir de l'aid."""
|
"""Raw-affiche l'objet. En ajoutant une ligne pour le dn."""
|
||||||
aid = obj.id()
|
raw= [obj.dn]
|
||||||
raw= ["dn: aid=%s,ou=data,dc=crans,dc=org" % (aid)]
|
|
||||||
for (field, content) in obj._data.iteritems():
|
for (field, content) in obj._data.iteritems():
|
||||||
for value in content:
|
for value in content:
|
||||||
raw.append("%s: %s" % (field, value))
|
raw.append("%s: %s" % (field, value))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue