Methode .rights() et non plus recherche par droits bruts
This commit is contained in:
parent
9485236f2f
commit
f66fa61993
1 changed files with 1 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue