From 7b63662f34df2d216ce4ae340751aafed843743b Mon Sep 17 00:00:00 2001 From: Pascale Noyret Date: Tue, 12 Jan 2010 09:48:08 +0000 Subject: [PATCH] *** empty log message *** --- MAP/Map1_Cata_V0.py | 52 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 MAP/Map1_Cata_V0.py diff --git a/MAP/Map1_Cata_V0.py b/MAP/Map1_Cata_V0.py new file mode 100644 index 00000000..d6ebd5bf --- /dev/null +++ b/MAP/Map1_Cata_V0.py @@ -0,0 +1,52 @@ +## -*- coding: utf-8 -*- +# +## -------------------------------------------------- +## debut entete +## -------------------------------------------------- +# +from Accas import * +class Tuple: + def __init__(self,ntuple): + self.ntuple=ntuple + + def __convert__(self,valeur): + if type(valeur) == types.StringType: + return None + if len(valeur) != self.ntuple: + return None + return valeur + + def info(self): + return "Tuple de %s elements" % self.ntuple + + __repr__=info + __str__=info + +# +#CONTEXT.debug = 1 +JdC = JDC_CATA ( code = 'MAP', + execmodul = None, + regles=(AU_MOINS_UN('VER_MOX',),), + )# Fin JDC_CATA +# + + +VER_MOX= PROC(nom="VER_MOX",op=None, + fr='mise en donnee de la generation du VER MOX', + + NBPHASES=SIMP(statut='o',typ='I',defaut=1,into=(1,2)), + FUSEAU1=FACT(fr="entree de lecfus", statut='o', + FORME=SIMP(statut = "o", typ='TXM', defaut="fichier", into=("manuel","fichier")), + + b_forme=BLOC( condition = "FORME == 'fichier'", + FORMAT = SIMP(statut = "o", typ='TXM', defaut="croissant", into=("croissant","decroissant")), + FICHIER = SIMP ( statut = "o", typ = "Fichier", ), + ), + + b_manuel=BLOC( condition = "FORME == 'manuel'", + LFUSEAU = SIMP ( statut = "o", typ=Tuple(2),validators=VerifTypeTuple(('R','R')), max="**",) ,),), + + + TAILLE=SIMP(statut = "o",fr="taille du VER en microns", typ='I'), + DISTANCE=SIMP(statut = "o",fr="distance de replusions", typ='R'), +) -- 2.39.2