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,13 +1681,21 @@ def menu_principal() :
|
||||||
|
|
||||||
if choix=='aMc' :
|
if choix=='aMc' :
|
||||||
# Ajout d'une machine à l'adhérent courant
|
# Ajout d'une machine à l'adhérent courant
|
||||||
arg = u'--title "Nouvelle machine" '
|
if proprio.etudes(0) != "ENS" or proprio.etudes(1) != "8":
|
||||||
arg+= u'--menu "Type de machine ?" 0 0 0 '
|
arg = u'--title "Nouvelle machine" '
|
||||||
arg+= u'"Fixe" "Machine fixe" '
|
arg+= u'--menu "Type de machine ?" 0 0 0 '
|
||||||
arg+= u'"Wifi" "Machine wireless" '
|
arg+= u'"Fixe" "Machine fixe" '
|
||||||
annul , result = dialog(arg)
|
arg+= u'"Wifi" "Machine wireless" '
|
||||||
if annul : continue
|
annul , result = dialog(arg)
|
||||||
choix=result[0]
|
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 :
|
try :
|
||||||
if choix=='Fixe' :
|
if choix=='Fixe' :
|
||||||
becane = machine(proprio,'fixe')
|
becane = machine(proprio,'fixe')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue