1 # -*- coding: utf-8 -*-
\r
2 # Copyright (C) 2007-2013 EDF R&D
\r
4 # This library is free software; you can redistribute it and/or
\r
5 # modify it under the terms of the GNU Lesser General Public
\r
6 # License as published by the Free Software Foundation; either
\r
7 # version 2.1 of the License.
\r
9 # This library is distributed in the hope that it will be useful,
\r
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
\r
12 # Lesser General Public License for more details.
\r
14 # You should have received a copy of the GNU Lesser General Public
\r
15 # License along with this library; if not, write to the Free Software
\r
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
\r
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
\r
21 Ce module sert pour charger les parametres de configuration d'EFICAS
\r
26 import configuration
\r
29 from Editeur import utils
\r
31 class CONFIG(configuration.CONFIG_BASE):
\r
33 #-----------------------------------
\r
34 def __init__(self,appli,repIni):
\r
35 #-----------------------------------
\r
36 self.ssCode=appli.ssCode
\r
37 self.INSTALLDIR =os.path.dirname(__file__)
\r
38 self.adresse="ftp://ftp.pleiade.edf.fr/projets/MAP/OnlineDoc/MAP2014.1/components"
\r
40 self.labels_user=['exec_acrobat','savedir','path_doc']
\r
41 self.labels_eficas=['exec_acrobat','savedir','path_doc','catalogues']
\r
43 #self.cataFile="catalogues_MAP.ini"
\r
44 configuration.CONFIG_BASE.__init__(self,appli,repIni)
\r
46 def make_ssCode(self,ssCode):
\r
47 if ssCode == None : return
\r
49 name='prefs_'+ssCode
\r
50 prefs_ssCode=__import__(name)
\r
51 prefs_ssCode.ajout(self)
\r
56 def make_config(appli,rep):
\r
57 return CONFIG(appli,rep)
\r