From 750e6cd57cb8300a5a8988cd195443204ca76a5c Mon Sep 17 00:00:00 2001 From: eficas <> Date: Mon, 22 Nov 2004 10:10:27 +0000 Subject: [PATCH] PN : pour permettre pour les anciennes versions ( aster 5 et aster 6) l affichage des parametres eval apres les formules et les commentaires. --- Aster/Cata/pre74/__init__.py | 2 +- Aster/Cata/pre74/compocomm.py | 33 +++++++++++++++++++++++++++++++++ Aster/Cata/pre74/compoparam.py | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 Aster/Cata/pre74/compocomm.py create mode 100644 Aster/Cata/pre74/compoparam.py diff --git a/Aster/Cata/pre74/__init__.py b/Aster/Cata/pre74/__init__.py index 416f114d..8b52b4cf 100644 --- a/Aster/Cata/pre74/__init__.py +++ b/Aster/Cata/pre74/__init__.py @@ -4,5 +4,5 @@ from FORM import FORM,FORM_ETAPE Accas.FORM=FORM Accas.FORM_ETAPE=FORM_ETAPE -import compooper,compoproc,compomacro +import compooper,compoproc,compomacro,compocomm,compoparam import compoformule diff --git a/Aster/Cata/pre74/compocomm.py b/Aster/Cata/pre74/compocomm.py new file mode 100644 index 00000000..51892998 --- /dev/null +++ b/Aster/Cata/pre74/compocomm.py @@ -0,0 +1,33 @@ +# 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. +# +# 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. +# +# 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. +# +# +# ====================================================================== +from Editeur import compocomm +import ongletpanel + +class COMMPanel(ongletpanel.OngletPanel,compocomm.COMMPanel) : + """ + """ +class COMMTreeItem(compocomm.COMMTreeItem): + panel = COMMPanel + +import Extensions.commentaire +treeitem = COMMTreeItem +objet = Extensions.commentaire.COMMENTAIRE + +Extensions.commentaire.COMMENTAIRE.itemeditor=COMMTreeItem diff --git a/Aster/Cata/pre74/compoparam.py b/Aster/Cata/pre74/compoparam.py new file mode 100644 index 00000000..eafb66ed --- /dev/null +++ b/Aster/Cata/pre74/compoparam.py @@ -0,0 +1,33 @@ +# 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. +# +# 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. +# +# 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. +# +# +# ====================================================================== +from Editeur import compoparam +import ongletpanel + +class PARAMPanel(ongletpanel.OngletPanel,compoparam.PARAMPanel) : + """ + """ +class PARAMTreeItem(compoparam.PARAMTreeItem): + panel = PARAMPanel + +import Extensions.parametre +treeitem = PARAMTreeItem +objet = Extensions.parametre.PARAMETRE + +Extensions.parametre.PARAMETRE.itemeditor=PARAMTreeItem -- 2.39.2