Methode .rights() et non plus recherche par droits bruts

This commit is contained in:
Gabriel Detraz 2015-08-18 02:08:17 +02:00
parent 9485236f2f
commit f66fa61993

View file

@ -10,8 +10,7 @@ txts = []
adhs = ldap.search(u"droits=*")
droits={}
for adh in adhs:
for droit in adh['droits']:
droit = unicode(droit)
for droit in adh.rights():
droits[droit] = droits.get(droit, []) + [adh]
d=droits.keys()