]> SALOME platform Git repositories - modules/adao.git/blob - src/daEficas/configuration_ADAO.py
Salome HOME
Updating copyright date information and version
[modules/adao.git] / src / daEficas / configuration_ADAO.py
1 # -*- coding: utf-8 -*-
2 # Copyright (C) 2008-2015 EDF R&D
3 #
4 # This file is part of SALOME ADAO module
5 #
6 # This library is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU Lesser General Public
8 # License as published by the Free Software Foundation; either
9 # version 2.1 of the License.
10 #
11 # This library is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 # Lesser General Public License for more details.
15 #
16 # You should have received a copy of the GNU Lesser General Public
17 # License along with this library; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 #
20 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 #
22 # Author: André Ribes, andre.ribes@edf.fr, EDF R&D
23
24 """
25     Ce module sert pour charger les paramètres de configuration d'EFICAS
26 """
27 # Modules Python
28 # print "passage dans la surcharge de configuration pour Adao"
29 import os, sys, string, types, re
30 import traceback
31 from PyQt4.QtGui  import *
32
33 # Modules Eficas
34 from Editeur import utils
35 from InterfaceQT4 import configuration
36
37 # Classe de base permettant de lire, afficher
38 # et sauvegarder les fichiers utilisateurs
39 class CONFIG(configuration.CONFIG_BASE):
40
41   def __init__(self,appli,repIni):
42
43     self.labels_eficas = ['lang']
44     configuration.CONFIG_BASE.__init__(self,appli,repIni)
45
46     self.rep_user = os.environ["HOME"]
47     self.appli   = appli
48     self.code    = appli.code
49     # self.lang    = "fr"
50     self.rep_ini = repIni
51     self.rep_mat=" " # Compatbilite Aster
52     self.savedir      = self.rep_user
53     self.generator_module = "generator_adao"
54     self.convert_module = "convert_adao"
55
56     # Format des catalogues...
57     # (code, version, catalogue, formatIn, formatOut)
58     # Il faut les mettre dans un tuple
59     self.catalogues = (("ADAO", "V0", os.path.join(self.rep_ini, 'ADAO_Cata_V0.py'), "adao"),)
60
61 def make_config(appli,rep):
62
63     return CONFIG(appli,rep)
64
65 def make_config_style(appli,rep):
66
67     return None