8 class A_CLASSER(I_REGLE.REGLE):
10 text = 'Règle ' + self.__class__.__name__+ ' :\n'
11 t=" D'abord :\n"+' '*8
12 for arg in self.args0:
13 t=t+string.strip(arg)+' ou '
14 text = text + t[0:-4] +'\n'
15 t = " Ensuite :\n"+' '*8
16 for arg in self.args1:
17 t=t+string.strip(arg)+' ou '
18 text = text + t[0:-4] +'\n'
21 def init_couples_permis(self):
23 Crée la liste des couples permis parmi les self.args,
24 càd pour chaque élément de self.args0 crée tous les couples possibles
25 avec un élément de self.args1
28 for arg0 in self.args0:
29 for arg1 in self.args1:
30 liste.append((arg0,arg1))
31 self.liste_couples = liste