From 64cad581ff47c6881d83d71f24ce68f0f08aaf7a Mon Sep 17 00:00:00 2001 From: glondu Date: Mon, 13 Mar 2006 18:00:37 +0100 Subject: [PATCH] Initialisation d'une nouvelle borne wifi. darcs-hash:20060313170037-68412-e6b38e8638caa0f12b9dad9dd9708bfa60f5830e.gz --- gestion/ldap_crans.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index d6df1584..c50cb24b 100755 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -2161,10 +2161,6 @@ class Machine(base_classes_crans): self.__proprietaire = parent_or_tuple self.dn = parent_or_tuple.dn self._data={ 'objectClass': [ self.objectClass ] } - if typ == 'borne': - # Valeurs par défaut - self._data['canal'] = [ '2047' ] - self._data['puissance'] = [ '60' ] self._init_data={} self.__typ = typ self._modifiable = 'w' @@ -2675,6 +2671,10 @@ class BorneWifi(Machine): def __init__(self, parent_or_tuple, typ='borne', conn=None): Machine.__init__(self, parent_or_tuple, typ, conn) + # Initialisaton par défaut spécifique + self._data['canal'] = ['2047'] + self._data['puissance'] = ['60'] + self._data['hotspot'] = ['FALSE'] def mac2(self): """ Retourne l'adresse MAC + 2 """