fix: probleme de childs non définis quand le LdapEntryTree n'a pas d'enfant

This commit is contained in:
Romain Beuque 2014-06-16 23:00:10 +02:00
parent 85bee1b89e
commit 1588fdc49a

View File

@ -535,8 +535,8 @@ class LdapEntryTree(LdapEntry):
self.val = val
self.__dict__ = val.__dict__
self.__dict__['value'] = val
self.childs = dict()
if len(childs) > 0:
self.childs = dict()
for key,child in childs.iteritems():
key = key.split("=")[1]
self.childs[key] = LdapEntryTree(child[0], child[1])