From: Christian Caremoli <> Date: Fri, 15 Jun 2007 13:57:36 +0000 (+0000) Subject: CCAR: retablissement methode __adapt__ X-Git-Tag: V1_12a2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=de9404f5c7fd3b11b0a10e2b65a7b0019541c8ff;p=modules%2Feficas.git CCAR: retablissement methode __adapt__ --- diff --git a/Aster/Cata/cataSTA7/cata.py b/Aster/Cata/cataSTA7/cata.py index 4c9d22db..13549f3a 100644 --- a/Aster/Cata/cataSTA7/cata.py +++ b/Aster/Cata/cataSTA7/cata.py @@ -34,8 +34,8 @@ except: pass # -__version__="$Name: $" -__Id__="$Id: cata_aster_v6.py,v 1.12 2001/01/16 15:55:05 iliade Exp $" +__version__="$Name: BR_V1_12a1 $" +__Id__="$Id: cata.py,v 1.3.8.5 2007-06-14 16:17:58 pnoyret Exp $" # JdC = JDC_CATA(code='ASTER', execmodul=None, @@ -47,6 +47,17 @@ class entier (ASSD): def __init__(self,valeur=None,**args): ASSD.__init__(self,**args) self.valeur=valeur + def __adapt__(self,validator): + if validator.name == "list": + #validateur liste,cardinalité + return (self,) + elif validator.name == "type": + #validateur type + return validator.adapt(self.valeur or 0) + else: + #validateur into et valid + return self + # Type geometriques class no (GEOM):pass