- if type(self.min) != types.IntType :
- if self.min != '**':
- self.cr.fatal("L'attribut 'min' doit etre un entier : "+`self.min`)
- if type(self.max) != types.IntType :
- if self.max != '**' :
- self.cr.fatal("L'attribut 'max' doit etre un entier : "+`self.max`)
- if self.min > self.max :
- self.cr.fatal("Nombres d'occurrence min et max invalides : %s %s" %(`self.min`,`self.max`))
- if type(self.fr) != types.StringType :
- self.cr.fatal("L'attribut 'fr' doit etre une chaine de caractères : %s" +`self.fr`)
- if self.statut not in ['o','f','c','d']:
- self.cr.fatal("L'attribut 'statut' doit valoir 'o','f','c' ou 'd' : %s" %`self.statut`)
- if self.homo != 0 and self.homo != 1 :
- self.cr.fatal("L'attribut 'homo' doit valoir 0 ou 1 : %s" %`self.homo`)
- if self.into != None :
- if type(self.into) != types.TupleType :
- self.cr.fatal("L'attribut 'into' doit etre un tuple : %s" %`self.into`)
- if self.position not in ['local','global','global_jdc']:
- self.cr.fatal("L'attribut 'position' doit valoir 'local','global' ou 'global_jdc' : %s" %`self.position`)
-