From de9404f5c7fd3b11b0a10e2b65a7b0019541c8ff Mon Sep 17 00:00:00 2001 From: Christian Caremoli <> Date: Fri, 15 Jun 2007 13:57:36 +0000 Subject: [PATCH] CCAR: retablissement methode __adapt__ --- Aster/Cata/cataSTA7/cata.py | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) 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 -- 2.39.2