Les personnels ENS n'ont accs qu'au wifi
darcs-hash:20050228135813-d1718-331e84e3d3518adfeb972e57329dee7d49e2e0d2.gz
This commit is contained in:
parent
f32657fa1b
commit
76bc68435f
1 changed files with 15 additions and 7 deletions
|
@ -1681,6 +1681,7 @@ def menu_principal() :
|
|||
|
||||
if choix=='aMc' :
|
||||
# Ajout d'une machine à l'adhérent courant
|
||||
if proprio.etudes(0) != "ENS" or proprio.etudes(1) != "8":
|
||||
arg = u'--title "Nouvelle machine" '
|
||||
arg+= u'--menu "Type de machine ?" 0 0 0 '
|
||||
arg+= u'"Fixe" "Machine fixe" '
|
||||
|
@ -1688,6 +1689,13 @@ def menu_principal() :
|
|||
annul , result = dialog(arg)
|
||||
if annul : continue
|
||||
choix=result[0]
|
||||
else:
|
||||
# Pour les personnels ENS, wifi uniquement
|
||||
arg = u'--title "Nouvelle machine" '
|
||||
arg+= u'--msgbox "Personnel ENS\n\n' + \
|
||||
u'Un personnel ENS ne peut accéder qu\'au wifi.\n\n\n" 0 0'
|
||||
dialog(arg)
|
||||
choix = 'Wifi'
|
||||
try :
|
||||
if choix=='Fixe' :
|
||||
becane = machine(proprio,'fixe')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue