[./gestion/gest_
darcs-hash:20100920113507-c8775-2abbec1fa1ccebc6b7e24aa056b5d35d2438c718.gz
This commit is contained in:
parent
5c628ef28e
commit
024049da29
1 changed files with 10 additions and 0 deletions
|
@ -102,6 +102,16 @@ def set_bases(adher):
|
|||
try: adher.tel(result[2])
|
||||
except ValueError, c: err += c.args[0] + '\n'
|
||||
|
||||
# Un adhérent du même nom existe-t-il déjà ?
|
||||
req = 'nom=' + result[0] + '&prenom=' + result[1]
|
||||
if len(db.search(req)['adherent']) > 0:
|
||||
arg = u'--title "Inscription adhérent" '
|
||||
arg += u'--yesno "Un adhérent du même nom existe déjà.'
|
||||
arg += u'\nEst-ce bien une première inscription ?" 0 0'
|
||||
no, res = dialog(arg)
|
||||
if no:
|
||||
return 1
|
||||
|
||||
err += _set_chbre(adher, result[3])
|
||||
|
||||
# Des erreurs ?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue