[gest_crans, ldap_crans, whos] Robustesse si le responsable d'un club a été supprimé
Ignore-this: dbb616fe0cff5ba356ec8b2a0587f96c darcs-hash:20111006133157-ffbb2-9429c7756fb617b4e12babf3945d80333fe3f1af.gz
This commit is contained in:
parent
9892e46c2f
commit
6c85740dd2
3 changed files with 24 additions and 8 deletions
|
@ -633,10 +633,19 @@ def set_droits(adher):
|
|||
map(lambda m: "%s$%s" % (adher.mail(), m), resultmls))
|
||||
|
||||
# On modifie !
|
||||
if not isadm:
|
||||
adher.droits(result, light=True)
|
||||
else:
|
||||
adher.droits(result)
|
||||
e = None
|
||||
try:
|
||||
if not isadm:
|
||||
adher.droits(result, light=True)
|
||||
else:
|
||||
adher.droits(result)
|
||||
except EnvironmentError, c: e = c.args[0]
|
||||
except ValueError, c: e = c.args[0]
|
||||
if e:
|
||||
arg = u'--title "Modification des droits pour %s" ' % adher.Nom()
|
||||
arg += u'--msgbox "%s\n\n\n" 0 0' % to_unicode(e)
|
||||
dialog(arg)
|
||||
return 1
|
||||
|
||||
def del_adher(adher):
|
||||
u"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue