Salome HOME
503fa366efa791edac6118493bcae048c88b538a
[modules/hydrosolver.git] / src / salome_hydro / coupling1d2d / eficas / configuration_coupling1d2d.py
1 # -*- coding: utf-8 -*-
2 #
3 #  Copyright (C) 2012-2013 EDF
4 #
5 #  This file is part of SALOME HYDRO module.
6 #
7 #  SALOME HYDRO module is free software: you can redistribute it and/or modify
8 #  it under the terms of the GNU General Public License as published by
9 #  the Free Software Foundation, either version 3 of the License, or
10 #  (at your option) any later version.
11 #
12 #  SALOME HYDRO module is distributed in the hope that it will be useful,
13 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
14 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 #  GNU General Public License for more details.
16 #
17 #  You should have received a copy of the GNU General Public License
18 #  along with SALOME HYDRO module.  If not, see <http://www.gnu.org/licenses/>.
19
20 import os
21
22 from Editeur.catadesc import CatalogDescription
23 from InterfaceQT4.configuration import CONFIG_BASE
24
25 class CONFIG(CONFIG_BASE):
26
27     def __init__(self, appli, repIni):
28         """
29         This class stores the configuration parameters for Eficas
30         """
31         CONFIG_BASE.__init__(self, appli, repIni)
32
33         # Configuration parameters
34         self.savedir    = os.getenv("HOME")
35         self.catalogues = (CatalogDescription("coupling1d2d",
36                                               os.path.join(repIni, "coupling1d2d_cata.py"),
37                                               file_format = "coupling1d2d"),)
38         self.lang = 'fr'
39
40         self.generator_module = "generator_coupling1d2d"
41
42     def save_params(self):
43         pass
44
45     def get_template_file(self):
46         return os.path.join(self.repIni, "coupling1d2d_template_schema.xml")
47
48     def get_extension(self):
49         return ".xml"
50
51 def make_config(appli, rep):
52     return CONFIG(appli, rep)
53
54 def make_config_style(appli, rep):
55     return None