Commit f4645a8a authored by Pierre-Elliott Bécue's avatar Pierre-Elliott Bécue

Quand on crée un objet, on permet un peu plus de débug si ça foire.

parent 7a63c558
......@@ -94,7 +94,12 @@ def new_cransldapobject(conn, dn, mode='ro', uldif=None, lockId=None):
_, attrs = res[0]
classe = ObjectFactory.get(attrs['objectClass'][0])
return classe(conn, dn, mode, uldif, lockId=lockId)
_clas = classe(conn, dn, mode, uldif, lockId=lockId)
except Exception as e:
print "dn=%s,uldif=%r" % (dn, uldif)
return _clas
class CransLdapObject(object):
"""Classe de base des objets :py:class:`CransLdap`.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment