diff --git a/gestion/gest_crans.py b/gestion/gest_crans.py index db77e14b..2273b27e 100755 --- a/gestion/gest_crans.py +++ b/gestion/gest_crans.py @@ -1681,13 +1681,21 @@ def menu_principal() : if choix=='aMc' : # Ajout d'une machine à l'adhérent courant - arg = u'--title "Nouvelle machine" ' - arg+= u'--menu "Type de machine ?" 0 0 0 ' - arg+= u'"Fixe" "Machine fixe" ' - arg+= u'"Wifi" "Machine wireless" ' - annul , result = dialog(arg) - if annul : continue - choix=result[0] + 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" ' + arg+= u'"Wifi" "Machine wireless" ' + 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')