Support de la creation de borne wifi
This commit is contained in:
parent
73617312b8
commit
b36b5ba2ce
1 changed files with 5 additions and 1 deletions
|
@ -38,6 +38,7 @@ class Dialog(certificat.Dialog, blacklist.Dialog):
|
|||
(a.portTCPout, 50), (a.portTCPin, 50), (a.portUDPout, 50),
|
||||
(a.portUDPin, 50)
|
||||
]
|
||||
to_display_borne = [(a.canal, 10), (a.hotspot, 10), (a.puissance, 10), (a.positionBorne, 50), (a.nvram, 10)]
|
||||
|
||||
# Quel séparateur on utilise pour les champs multivalué
|
||||
separateur = ' '
|
||||
|
@ -134,10 +135,13 @@ class Dialog(certificat.Dialog, blacklist.Dialog):
|
|||
machine = create_machine(proprio, realm, attrs)
|
||||
raise Continue(cont(machine=machine))
|
||||
|
||||
|
||||
if machine:
|
||||
objectClass = machine["objectClass"][0]
|
||||
|
||||
# Les bornes wifi ont un to_display différent
|
||||
if objectClass == 'borneWifi':
|
||||
to_display += to_display_borne
|
||||
|
||||
(code, tags) = self.handle_dialog(cont, box)
|
||||
|
||||
# On prépare les fiels à afficher à l'utilisateur si une erreure à lieu
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue