Migration zamok.
darcs-hash:20050825141815-41617-f9c9222b78b7bc6c276228367d33895cf1b27f81.gz
This commit is contained in:
parent
b71f14546d
commit
e4bbb04a86
4 changed files with 27 additions and 118 deletions
|
@ -248,7 +248,7 @@ def set_etudes(adher) :
|
|||
if result[0] == "Pers":
|
||||
arg = u'--title "Etudes (2/3)" '
|
||||
arg+= u'--msgbox "Personnel ENS\n\n' + \
|
||||
u'Attention, un personnel ENS est un cas bien particulier. Cela correspond à une personne n\'étant pas élève, étant prof dans un département ou un labo, disposant d\'une adresse @ens-cachan.fr. Cela ne donne accès qu\'au wifi, pour l\'année 2005 uniquement. Il ne pourra pas disposer d\'un compte sur zamok et n\'aura pas accès au réseau interne.\n\n\n" 0 0'
|
||||
u'Attention, un personnel ENS est un cas bien particulier. Cela correspond à une personne n\'étant pas élève, étant prof dans un département ou un labo, disposant d\'une adresse @ens-cachan.fr. Cela ne donne accès qu\'au wifi, pour l\'année 2005 uniquement. Il ne pourra pas disposer d\'un compte crans et n\'aura pas accès au réseau interne.\n\n\n" 0 0'
|
||||
dialog(arg)
|
||||
etudes[1] = result[0]
|
||||
|
||||
|
@ -363,9 +363,9 @@ def set_mail(adher) :
|
|||
arg+= u'--menu "Adresse mail de l\'adhérent :" 0 0 0 '
|
||||
arg+= u'"Adresse mail extérieure" "" '
|
||||
if adher.compte() :
|
||||
arg+= u'"Laisser le compte sur zamok" "(login : %s)"' % adher.compte()
|
||||
arg+= u'"Laisser le compte crans" "(login : %s)"' % adher.compte()
|
||||
else :
|
||||
arg+= u'"Créer un compte sur zamok" "(adresse @crans.org)"'
|
||||
arg+= u'"Créer un compte crans" "(adresse @crans.org)"'
|
||||
|
||||
annul , result = dialog(arg)
|
||||
if annul : return 1
|
||||
|
@ -412,11 +412,11 @@ def set_mail_ext(adher) :
|
|||
|
||||
def set_compte(adher) :
|
||||
"""
|
||||
Créé un compte sur zamok pour un adhérent.
|
||||
Créé un compte sur vert pour un adhérent.
|
||||
"""
|
||||
|
||||
# Message d'avertissement
|
||||
arg = u'--title "Création compte sur zamok pour %s" ' % adher.Nom()
|
||||
arg = u'--title "Création compte crans pour %s" ' % adher.Nom()
|
||||
arg+= u'--colors --yesno "\Zr\Z1AVERTISSEMENT :\Zn \n'
|
||||
arg+= u'L\'adhérent devra impérativement consulter l\'adresse mail associée\n\n\n\\ZnContinuer ?" '
|
||||
arg+= u'0 0'
|
||||
|
@ -443,7 +443,7 @@ def set_compte(adher) :
|
|||
if err :
|
||||
while 1:
|
||||
# Mauvais login => on demande
|
||||
arg = u'--title "Création d\'un compte sur zamok pour %s" ' % adher.Nom()
|
||||
arg = u'--title "Création d\'un compte crans pour %s" ' % adher.Nom()
|
||||
arg+= u'--inputbox "Choix du login\n'
|
||||
arg+= u'Le login doit faire au maximum %s caractères\n' % config.maxlen_login
|
||||
arg+= u'Il ne doit pas être un pseudo ou prénom mais doit être relié au nom de famille\n'
|
||||
|
@ -458,7 +458,7 @@ def set_compte(adher) :
|
|||
except EnvironmentError, c : e = c.args[0]
|
||||
except ValueError, c : e = c.args[0]
|
||||
if e :
|
||||
arg = u'--title "Création compte sur zamok pour %s" ' % adher.Nom()
|
||||
arg = u'--title "Création compte crans pour %s" ' % adher.Nom()
|
||||
arg+= u'--msgbox "%s\n\n\n" 0 0' % e
|
||||
dialog(arg)
|
||||
continue
|
||||
|
@ -475,7 +475,7 @@ def set_compte(adher) :
|
|||
|
||||
txt+= u'\n'
|
||||
|
||||
arg = u'--title "Création compte sur zamok pour %s" ' % adher.Nom()
|
||||
arg = u'--title "Création compte crans pour %s" ' % adher.Nom()
|
||||
arg+= u'--colors --msgbox "%s\n\n\n" 0 0' % txt
|
||||
dialog(arg)
|
||||
|
||||
|
@ -609,14 +609,14 @@ def set_local(club) :
|
|||
|
||||
def set_club_compte(club) :
|
||||
"""
|
||||
Créé un compte sur zamok pour un club.
|
||||
Créé un compte sur vert pour un club.
|
||||
"""
|
||||
|
||||
while 1 :
|
||||
arg = u'--title "Création d\'un compte sur zamok pour %s" ' % club.Nom()
|
||||
arg = u'--title "Création d\'un compte crans pour %s" ' % club.Nom()
|
||||
arg+= u'--inputbox "Choix du login\n'
|
||||
arg+= u'Le nom pour le login doit faire au maximum %s caractères\n' % config.maxlen_login
|
||||
arg+= u'Le login sur zamok sera club-\'nom du club\'\n'
|
||||
arg+= u'Le login sur ssh sera club-\'nom du club\'\n'
|
||||
arg+= u'Le site web du club sera accessible via l\'adresse http://clubs.crans.ens-cachan.fr/\'nom du club\'\n'
|
||||
arg+= u'Seuls les caractères alphabétiques et le - sont autorisés" '
|
||||
arg+= u'0 0 ""'
|
||||
|
@ -629,7 +629,7 @@ def set_club_compte(club) :
|
|||
except EnvironmentError, c : e = c.args[0]
|
||||
except ValueError, c : e = c.args[0]
|
||||
if e :
|
||||
arg = u'--title "Création compte sur zamok pour %s" ' % club.Nom()
|
||||
arg = u'--title "Création compte crans pour %s" ' % club.Nom()
|
||||
arg+= u'--msgbox "%s\n\n\n" 0 0' % e
|
||||
dialog(arg)
|
||||
continue
|
||||
|
@ -640,7 +640,7 @@ def set_club_compte(club) :
|
|||
|
||||
txt+= u'\n'
|
||||
|
||||
arg = u'--title "Création compte sur zamok pour %s" ' % club.Nom()
|
||||
arg = u'--title "Création compte crans pour %s" ' % club.Nom()
|
||||
arg+= u'--colors --msgbox "%s\n\n\n" 0 0' % txt
|
||||
dialog(arg)
|
||||
|
||||
|
@ -939,7 +939,7 @@ def modif_club(club) :
|
|||
arg+= u'"Responsable" "Changer le responsable du club %s" ' % club.responsable().Nom()
|
||||
arg+= u'"Administratif" "Précâblage" '
|
||||
arg+= u'"Local" "Modifier le local du club" '
|
||||
arg+= u'"Compte" "Créer un compte sur zamok" '
|
||||
arg+= u'"Compte" "Créer un compte crans." '
|
||||
if club.compte() :
|
||||
arg+= u'"Alias" "Créer ou supprimer un alias mail" '
|
||||
if isdeconnecteur :
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue