]> SALOME platform Git repositories - modules/eficas.git/commitdiff
Salome HOME
prise en compte enregistre
authoreficas <>
Mon, 8 Apr 2002 07:48:31 +0000 (07:48 +0000)
committereficas <>
Mon, 8 Apr 2002 07:48:31 +0000 (07:48 +0000)
Exemples/ex11/main.py

index 08352a34858e1f7a9db7e7e52bb0e4adea461970..942472b588d0b31a13c0447d463c8b19a04013f0 100644 (file)
@@ -28,6 +28,16 @@ class concept:
       """ Retourne 1 si sd est du bon type par rapport à la classe """
       return 0
 
+class cata:
+   def __init__(self):
+      CONTEXT.unset_current_cata()
+      CONTEXT.set_current_cata(self)
+
+   def enregistre(self,commande):
+      return
+
+c=cata()
+
 OP1 = OPER(nom='OP1',op=1,sd_prod=concept,reentrant='f',
            a=SIMP(typ='I'),
            c=SIMP(typ='I',position='global'),