Salome HOME
mse a jour du 07/03/2016 pour sauvegarde
[tools/eficas.git] / MAP / configuration_MAP.py
1 # -*- coding: utf-8 -*-\r
2 # Copyright (C) 2007-2013   EDF R&D\r
3 #\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
8 #\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
13 #\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
17 #\r
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com\r
19 #\r
20 """\r
21     Ce module sert pour charger les parametres de configuration d'EFICAS\r
22 """\r
23 # Modules Python\r
24 import os\r
25 import sys\r
26 import configuration\r
27 \r
28 # Modules Eficas\r
29 from Editeur import utils\r
30 \r
31 class CONFIG(configuration.CONFIG_BASE):\r
32 \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
39 \r
40       self.labels_user=['exec_acrobat','savedir','path_doc']\r
41       self.labels_eficas=['exec_acrobat','savedir','path_doc','catalogues']\r
42 \r
43       #self.cataFile="catalogues_MAP.ini"\r
44       configuration.CONFIG_BASE.__init__(self,appli,repIni)\r
45   \r
46   def make_ssCode(self,ssCode):\r
47       if ssCode == None : return\r
48       try :\r
49         name='prefs_'+ssCode\r
50         prefs_ssCode=__import__(name)\r
51         prefs_ssCode.ajout(self)\r
52       except :\r
53        pass\r
54        \r
55 \r
56 def make_config(appli,rep):\r
57     return CONFIG(appli,rep)\r
58 \r
59 \r
60 \r