[objets] methode display() pour afficher textuellement un objet
This commit is contained in:
parent
99b9f8bc12
commit
b64a67a24e
1 changed files with 5 additions and 0 deletions
|
@ -53,6 +53,7 @@ import crans_utils
|
||||||
import attributs
|
import attributs
|
||||||
import ldap_locks
|
import ldap_locks
|
||||||
import variables
|
import variables
|
||||||
|
import printing
|
||||||
|
|
||||||
## import de /usr/scripts/
|
## import de /usr/scripts/
|
||||||
if not "/usr/scripts/" in sys.path:
|
if not "/usr/scripts/" in sys.path:
|
||||||
|
@ -157,6 +158,10 @@ class CransLdapObject(object):
|
||||||
nvals = [nldif[attr][vals.index(v)] for v in vals ]
|
nvals = [nldif[attr][vals.index(v)] for v in vals ]
|
||||||
raise EnvironmentError("λv. str(Attr(v)) n'est peut-être pas une projection (ie non idempotente):", attr, nvals, vals)
|
raise EnvironmentError("λv. str(Attr(v)) n'est peut-être pas une projection (ie non idempotente):", attr, nvals, vals)
|
||||||
|
|
||||||
|
|
||||||
|
def display(self):
|
||||||
|
print printing.sprint(self)
|
||||||
|
|
||||||
def history_add(self, login, chain):
|
def history_add(self, login, chain):
|
||||||
"""Ajoute une ligne à l'historique de l'objet.
|
"""Ajoute une ligne à l'historique de l'objet.
|
||||||
###ATTENTION : C'est un kludge pour pouvoir continuer à faire "comme avant",
|
###ATTENTION : C'est un kludge pour pouvoir continuer à faire "comme avant",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue