[radius_auth.py] Appartements de l'ENS

Ignore-this: b874519e007921c54c55e2b354d2a2cc

darcs-hash:20090302140219-bd074-e3ea8cc4f3b6080e4b7bddb0af18d95cb374ce9e.gz
This commit is contained in:
Antoine Durand-Gasselin 2009-03-02 15:02:19 +01:00
parent a8446f5f27
commit 091981f029

View file

@ -58,7 +58,7 @@ def do_auth(mac):
# L'adherent ne paie pas, on le met sur le vlan radin # L'adherent ne paie pas, on le met sur le vlan radin
if not isinstance(proprio, Club) and not proprio.adherentPayant(): if not isinstance(proprio, Club) and not proprio.adherentPayant():
return (0, "Ne paie pas", "radin") return (0, "Ne paie pas", "gratuit")
# Paiment ok ? # Paiment ok ?
paid = max(proprio.paiement() + [0]) paid = max(proprio.paiement() + [0])
@ -71,6 +71,10 @@ def do_auth(mac):
if ann_scol > paid: if ann_scol > paid:
return (0, "N'a pas payé", "accueil") return (0, "N'a pas payé", "accueil")
# Cas des personnels logés dans les appartements de l'ENS
if proprio.etudes(0) == 'Personnel ENS':
return (0, "Personnel ENS", "appts")
# C'est bon # C'est bon
return (0, "Accès adhérent OK", "adherent") return (0, "Accès adhérent OK", "adherent")