2 Ce module contient la classe NIVEAU qui sert à définir
3 des groupes de commandes dans le catalogue
7 def __init__(self,nom='',label='',niveaux=(),valide_vide=1,actif=1):
14 self.l_noms_entites=[]
15 self.valide_vide = valide_vide
18 self.l_niveaux = niveaux
19 for niveau in niveaux:
20 self.d_niveaux[niveau.nom]=niveau
21 self.d_niveaux.update(niveau.d_niveaux)
23 def enregistre(self,commande):
24 self.entites.append(commande)
25 self.l_noms_entites.append(commande.nom)
27 def get_liste_cmd(self):
28 self.l_noms_entites.sort()
29 return self.l_noms_entites