Recherche correcte si un seul champ de recherche.
darcs-hash:20050901204025-41617-87fcef00f4400a4914158b4d87c9f1d5850db002.gz
This commit is contained in:
parent
4f02c48ae8
commit
8076ab376a
1 changed files with 8 additions and 1 deletions
|
@ -550,6 +550,13 @@ class crans_ldap :
|
|||
if not r['machine'] and not r['adherent'] and not r['club'] :
|
||||
# Pas de réponses
|
||||
return result
|
||||
elif len(conds) == 1 :
|
||||
# Filtre sur un seul champ
|
||||
# => on retourne tout
|
||||
for i in filtres :
|
||||
if not r[i] : continue
|
||||
for res in r[i] :
|
||||
result[i].append(globals()[i](res,mode,self.conn))
|
||||
elif not r['adherent'] and not r['club'] :
|
||||
# Il n'y avait seulement un filtre machine
|
||||
# => on retourne uniquement les machines trouvées
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue