Salome HOME
chgt Copyrigth
[tools/eficas.git] / Accas / __init__.py
index 8801fb7025953f9c6ca25829930690a2bd4dc6a7..ce4722dacd0385f6f7b2f48a4278fffcb18a58c3 100644 (file)
-#            CONFIGURATION MANAGEMENT OF EDF VERSION
-# ======================================================================
-# COPYRIGHT (C) 1991 - 2002  EDF R&D                  WWW.CODE-ASTER.ORG
-# THIS PROGRAM IS FREE SOFTWARE; YOU CAN REDISTRIBUTE IT AND/OR MODIFY
-# IT UNDER THE TERMS OF THE GNU GENERAL PUBLIC LICENSE AS PUBLISHED BY
-# THE FREE SOFTWARE FOUNDATION; EITHER VERSION 2 OF THE LICENSE, OR
-# (AT YOUR OPTION) ANY LATER VERSION.
+# -*- coding: iso-8859-1 -*-
+# Copyright (C) 2007-2021   EDF R&D
 #
-# THIS PROGRAM IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT
-# WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF
-# MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. SEE THE GNU
-# GENERAL PUBLIC LICENSE FOR MORE DETAILS.
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
 #
-# YOU SHOULD HAVE RECEIVED A COPY OF THE GNU GENERAL PUBLIC LICENSE
-# ALONG WITH THIS PROGRAM; IF NOT, WRITE TO EDF R&D CODE_ASTER,
-#    1 AVENUE DU GENERAL DE GAULLE, 92141 CLAMART CEDEX, FRANCE.
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
 #
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
-# ======================================================================
 """
-   Ce package contient les classes qui seront effectivement utilisées dans les applications. 
-   C'est dans ce package que sont réalisées les combinaisons de classes de base
-   avec les classes MIXIN qui implémentent les fonctionnalités qui ont été séparées
-   du noyau pour des raisons de modularité afin de faciliter la maintenance et
-   l'extensibilité.
+   Ce package contient les classes qui seront effectivement utilisees dans les applications.
+   C'est dans ce package que sont realisees les combinaisons de classes de base
+   avec les classes MIXIN qui implementent les fonctionnalites qui ont ete separees
+   du noyau pour des raisons de modularite afin de faciliter la maintenance et
+   l'extensibilite.
 
-   De plus toutes les classes utilisables par les applications sont remontées au
-   niveau du package afin de rendre le plus indépendant possible l'utilisation des
-   classes et leur implémentation.
+   De plus toutes les classes utilisables par les applications sont remontees au
+   niveau du package afin de rendre le plus independant possible l'utilisation des
+   classes et leur implementation.
 """
-from A_JDC_CATA import JDC_CATA
-from A_OPER import OPER
-from A_PROC import PROC
-from A_MACRO import MACRO
-from A_FORM import FORM
-from A_BLOC import BLOC
-from A_FACT import FACT
-from A_SIMP import SIMP
-from A_EVAL import EVAL
-from A_NUPLET import NUPL
 
-from A_JDC import JDC
-from A_ETAPE import ETAPE
-from A_PROC_ETAPE import PROC_ETAPE
-from A_MACRO_ETAPE import MACRO_ETAPE
-from A_FORM_ETAPE import FORM_ETAPE
-from A_MCFACT import MCFACT
-from A_MCLIST import MCList
-from A_MCBLOC import MCBLOC
-from A_MCSIMP import MCSIMP
+# permet de se proteger de l'oubli de carte coding
+# ce warning deviendra fatal en python 2.4
+from __future__ import absolute_import
+import warnings
+warnings.filterwarnings('error','Non-ASCII character.*pep-0263',DeprecationWarning)
+
+from .A_JDC_CATA import JDC_CATA
+from .A_OPER import OPER
+from .A_PROC import PROC
+from .A_MACRO import MACRO
+from .A_FORM import FORM
+from .A_BLOC import BLOC
+#from .A_BLOC import BLOC_EXCLUS_ABC
+#from .A_BLOC import BLOC_FICHIER
+from .A_FACT import FACT
+from .A_SIMP import SIMP
+from .A_EVAL import EVAL
+from .A_NUPLET import NUPL
+from .A_TUPLE import Tuple
+
 
-# Les règles
-from A_AU_MOINS_UN import AU_MOINS_UN
-from A_UN_PARMI import UN_PARMI
-from A_PRESENT_PRESENT import PRESENT_PRESENT
-from A_PRESENT_ABSENT import PRESENT_ABSENT
-from A_EXCLUS import EXCLUS
-from A_ENSEMBLE import ENSEMBLE
-from A_A_CLASSER import A_CLASSER
+from .A_JDC import JDC
+from .A_ETAPE import ETAPE
+from .A_PROC_ETAPE import PROC_ETAPE
+from .A_MACRO_ETAPE import MACRO_ETAPE
+from .A_FORM_ETAPE import FORM_ETAPE
+from .A_MCFACT import MCFACT
+from .A_MCLIST import MCList
+from .A_MCBLOC import MCBLOC
+from .A_MCSIMP import MCSIMP
 
-from A_ASSD import ASSD,assd
-from A_ASSD import GEOM,geom
+# Les regles
+from .A_AU_MOINS_UN import AU_MOINS_UN
+from .A_MEME_NOMBRE import MEME_NOMBRE
+from .A_AU_PLUS_UN import AU_PLUS_UN
+from .A_UN_PARMI import UN_PARMI
+from .A_PRESENT_PRESENT import PRESENT_PRESENT
+from .A_PRESENT_ABSENT import PRESENT_ABSENT
+from .A_EXCLUS import EXCLUS
+from .A_ENSEMBLE import ENSEMBLE
+from .A_A_CLASSER import A_CLASSER
+from .A_AVANT import AVANT
+
+from .A_ASSD import ASSD,assd, UserASSD
+from .A_ASSD import GEOM,geom
 # Pour le moment on laisse fonction (ceinture et bretelles)
-from A_ASSD import FONCTION, fonction
-from A_ASSD import formule
-from A_ASSD import CO
+from .A_ASSD import FONCTION, fonction
+from .A_ASSD import formule
+from .A_ASSD import formule_c
+from .A_ASSD import CO
 
 from Noyau.N__F import _F
 
 from Noyau.N_Exception import AsException
 from Noyau.N_utils import AsType
+from Noyau.N_utils import AsType
+from Noyau.N_OPS import OPS, EMPTY_OPS
+from Noyau.N_ASSD import not_checked
+
+from .A_VALIDATOR import OrVal,AndVal,OnlyStr
+from .A_VALIDATOR import OrdList,NoRepeat,LongStr,Compulsory,Absent,Together
+from .A_VALIDATOR import RangeVal, EnumVal, TypeVal, PairVal
+from .A_VALIDATOR import CardVal, InstanceVal
+from .A_VALIDATOR import VerifTypeTuple, VerifExiste
+from .A_VALIDATOR import FileExtVal, FunctionVal
+from .A_VALIDATOR import CreeMotClef
+
+# On remplace la factory des validateurs initialement dans Noyau par celle
+# de A_VALIDATOR
+from .A_VALIDATOR  import validatorFactory
+import Noyau.N_ENTITE
+Noyau.N_ENTITE.ENTITE.factories['validator']=validatorFactory
+
+from .A_SENSIBILITE import CONCEPT_SENSIBLE, REUSE_SENSIBLE, DERIVABLE
+
 from Extensions.niveau import NIVEAU
 from Extensions.etape_niveau import ETAPE_NIVEAU
 from Extensions.commentaire import COMMENTAIRE
-from Extensions.parametre import PARAMETRE  
+from Extensions.parametre import PARAMETRE
 from Extensions.parametre_eval import PARAMETRE_EVAL
-from Extensions.commande_comm import COMMANDE_COMM 
+from Extensions.commande_comm import COMMANDE_COMM
 from Extensions.mcnuplet import MCNUPLET
 
+from .A_SALOME_ENTRY import SalomeEntry