]> SALOME platform Git repositories - tools/eficas.git/blob - CatasDeTests/cata_UserAssd.py
Salome HOME
reindent + copyright + merge manuel avec la V9_dev sauf repertoires metier
[tools/eficas.git] / CatasDeTests / cata_UserAssd.py
1 # Copyright (C) 2008-2018 EDF R&D
2 #
3 # This file is part of SALOME ADAO module
4 #
5 # This library is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU Lesser General Public
7 # License as published by the Free Software Foundation; either
8 # version 2.1 of the License.
9 #
10 # This library is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 # Lesser General Public License for more details.
14 #
15 # You should have received a copy of the GNU Lesser General Public
16 # License along with this library; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
18 #
19 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 import os, re
21 import Accas
22 from Accas import *
23 monFichier=os.path.abspath(__file__)
24
25 JdC = JDC_CATA (
26     code='Essai'
27     )
28 VERSION_CATALOGUE='V_0'
29
30 # tout est Facultatif car sinon, on ne peut pas supprimer et c 'est ce qu on veut tester
31
32 class laClasseUser(UserASSD): pass
33 class laClasseUserDerive(laClasseUser): pass
34 class lASSD(ASSD): pass
35
36 # En fait, cela n pas vraiment de sens que cela soit dans le fact
37 # ou si ? pour l instant on laisse de cote
38
39 DefinitionDsFactDsOper = OPER( nom='DefinitionDsFactDsOper', sd_prod=lASSD,
40      unFact1 = FACT(statut='f', max="**",
41         creeUserAssd = SIMP( statut='f', typ = (laClasseUser,'createObject'),),
42        ),
43 )
44
45 DefinitionDsSimpDsOper = OPER( nom='DefinitionDsSimpDsOper', sd_prod=lASSD,
46       creeUserAssd = SIMP( statut='f', typ = (laClasseUserDerive,'createObject'),),
47 )
48
49 DefinitionDsFactDsProc = PROC( nom='DefinitionDsFactDsProc',
50      unFact = FACT(statut='f',
51         creeUserAssd = SIMP( statut='f', typ = (laClasseUser,'createObject'),),
52        ),
53 )
54 DefinitionDsSimpDsProc = PROC( nom='DefinitionDsSimpDsProc',
55         creeUserAssd = SIMP( statut='f', typ = (laClasseUser,'createObject'),),
56 )
57
58 DefinitionDsSimpListe = PROC( nom='DefinitionDsSimpListe',
59         creeUserAssd = SIMP( statut='f', typ = (laClasseUser,'createObject'),max='**'),
60 )
61
62 UtiliseUnUserAssD = PROC( nom = 'UtiliseUnUserAssD',
63         utiliseUnUserAssd  = SIMP(statut= 'o',typ =laClasseUser),
64 )
65 UtiliseEtDefinitDsLeMemeProc = PROC( nom = 'UtiliseEtDefinitDsLeMemeProc',
66         utiliseUserAssd  = SIMP(statut= 'o',typ= laClasseUser,max='**'),
67         creeUserAssd = SIMP( statut='f', typ = (laClasseUser,'createObject'),),
68 )