From d91e4a062e6272a042d78f7e942f6fcf025bf61f Mon Sep 17 00:00:00 2001 From: Daniel STAN Date: Mon, 7 Jan 2013 19:16:44 +0100 Subject: [PATCH] [gest_crans/recherche par login] @crans.org optionnel Ignore-this: 7701d0bfb7a86c8f86992172934aaf79 darcs-hash:20130107181644-28565-61828542e0129469e87fe4666788a8d2d25dfdfc.gz --- gestion/gest_crans.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gestion/gest_crans.py b/gestion/gest_crans.py index bc3bb025..591c48ea 100644 --- a/gestion/gest_crans.py +++ b/gestion/gest_crans.py @@ -1916,6 +1916,10 @@ def select(clas, quoi, mde=''): if not i: i= u'*' s.append(i) + # Recherche par adresse mail/login + if '@' not in s[5]: + s[5] += '@crans.org' + ### Contruction de la chaƮne de recherche filtre_adher = u'nom=%s&prenom=%s&tel=%s&chbre=%s&aid=%s&mail=%s&' % tuple(s[:6]) filtre_machine = u'host=%s&macAddress=%s&ipHostNumber=%s&mid=%s&' % tuple(s[6:])