2 # ======================================================================
3 # COPYRIGHT (C) 2007-2021 EDF R&D
4 # THIS PROGRAM IS FREE SOFTWARE; YOU CAN REDISTRIBUTE IT AND/OR MODIFY
5 # IT UNDER THE TERMS OF THE GNU GENERAL PUBLIC LICENSE AS PUBLISHED BY
6 # THE FREE SOFTWARE FOUNDATION; EITHER VERSION 2 OF THE LICENSE, OR
7 # (AT YOUR OPTION) ANY LATER VERSION.
9 # THIS PROGRAM IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT
10 # WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF
11 # MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. SEE THE GNU
12 # GENERAL PUBLIC LICENSE FOR MORE DETAILS.
14 # YOU SHOULD HAVE RECEIVED A COPY OF THE GNU GENERAL PUBLIC LICENSE
15 # ALONG WITH THIS PROGRAM; IF NOT, WRITE TO EDF R&D CODE_ASTER,
16 # 1 AVENUE DU GENERAL DE GAULLE, 92141 CLAMART CEDEX, FRANCE.
19 # ======================================================================
21 from __future__ import absolute_import
27 # Le "current step" est l'etape courante.
28 # Une macro se declare etape courante dans sa methode Build avant de construire
29 # ses etapes filles ou dans BuildExec avant de les executer.
30 # Les etapes simples le font aussi : dans Execute et BuildExec.
31 # (Build ne fait rien pour une etape)
34 def setCurrentStep(step):
36 Fonction qui permet de changer la valeur de l'etape courante
40 raise Exception("Impossible d'affecter _root. Il devrait valoir None")
46 Fonction qui permet d'obtenir la valeur de l'etape courante
51 def unsetCurrentStep():
53 Fonction qui permet de remettre a None l'etape courante
59 def setCurrentCata(cata):
61 Fonction qui permet de changer l'objet catalogue courant
65 raise Exception("Impossible d'affecter _cata. Il devrait valoir None")
71 Fonction qui retourne l'objet catalogue courant
76 def unsetCurrentCata():
78 Fonction qui permet de remettre a None le catalogue courant
86 Fonction qui retourne l'objet JDC courant
90 def setCurrentJdC(jdc):
92 Fonction qui permet de changer l'objet JDC courant
96 raise Exception("Impossible d'affecter _jdc. Il devrait valoir None")
99 def unsetCurrentJdC():
101 Fonction qui permet de remettre a None le JDC courant