Search by unicode
This commit is contained in:
parent
e18e5222b7
commit
9540bc572c
4 changed files with 15 additions and 16 deletions
8
test.py
8
test.py
|
@ -131,7 +131,7 @@ def tests_machines(parent_dn, realm_list, ipsec=False):
|
|||
print OK
|
||||
anim("Suppression d'une machines %s" % realm)
|
||||
try:
|
||||
machine = conn.search('mid=%s' % machine['mid'][0], mode='rw')[0]
|
||||
machine = conn.search(u'mid=%s' % machine['mid'][0], mode='rw')[0]
|
||||
machine.delete()
|
||||
del(machine)
|
||||
except Exception as error:
|
||||
|
@ -234,7 +234,7 @@ else:
|
|||
|
||||
anim("Suppression d'un club")
|
||||
try:
|
||||
club = conn.search('cid=%s' % club['cid'][0], mode='rw')[0]
|
||||
club = conn.search(u'cid=%s' % club['cid'][0], mode='rw')[0]
|
||||
club.delete()
|
||||
except Exception:
|
||||
print ERREUR
|
||||
|
@ -252,7 +252,7 @@ else:
|
|||
if adherent:
|
||||
anim("Suppression d'un adherent")
|
||||
try:
|
||||
adherent = conn.search('aid=%s' % adherent['aid'][0], mode='rw')[0]
|
||||
adherent = conn.search(u'aid=%s' % adherent['aid'][0], mode='rw')[0]
|
||||
adherent.delete()
|
||||
except Exception:
|
||||
print ERREUR
|
||||
|
@ -274,7 +274,7 @@ except Exception as error:
|
|||
else:
|
||||
print OK
|
||||
try:
|
||||
facture = conn.search('fid=%s' % facture['fid'][0], mode='rw')[0]
|
||||
facture = conn.search(u'fid=%s' % facture['fid'][0], mode='rw')[0]
|
||||
facture.delete()
|
||||
except Exception:
|
||||
print ERREUR
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue