From: Eric Fayolle Date: Mon, 18 Nov 2019 14:16:13 +0000 (+0100) Subject: Ajout du répertoire de test Mapping Acass XSD X-Git-Tag: V200520bis~108 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=dad984eaa26846fa725c6e3cab87019caf95796d;p=tools%2Feficas.git Ajout du répertoire de test Mapping Acass XSD --- diff --git a/Tests/MappingAccasXsd/Makefile b/Tests/MappingAccasXsd/Makefile new file mode 100755 index 00000000..89dc3379 --- /dev/null +++ b/Tests/MappingAccasXsd/Makefile @@ -0,0 +1,54 @@ +SUFFIXES= .xsd + +PYXB=pyxbgen + +#$(PYXB) -m $(basename $@) -u $< --location-prefix-rewrite http://chercheurs.edf.com/logiciels/vimmp= --write-for-customization \ +# L'utilisation de $? ne fonctionne pas s'il on modifie qu'un catalogue car il ne redonne pas le fichier non modifié et pyxb détecte +# que l'autre fichier en dépend et qu'il n'est pas regénéré : $^ + + +all: xsdAll driverAll + + +#xsdAll: xsdVimmp xsdFoam +xsdAll: xsdTest + +xsdVimmp: + python2 ./generateXSD.py -c ./cata_Vimmp.py +xsdTest: + python2 ./generateXSD.py -c ./cata_1.py +xsdFoam: + python2 ./generateXSD.py -c ./cata_foam.py + +driverAll: cata_1_genere.py +#driverAll: cata_Vimmp_genere.py cata_foam_genere.py + +cata_Vimmp_genere.py: cata_Vimmp_genere.xsd + $(PYXB) -m $(basename $@) -u $^ --write-for-customization + @echo "You may use : export PYTHONPATH=/local/PyXB-1.2.6.bin/lib/python2.7/site-packages/:${PYTHONPATH}" + +cata_gromacs_genere.py: cata_gromacs_genere.xsd + $(PYXB) -m $(basename $@) -u $^ --write-for-customization + @echo "You may use : export PYTHONPATH=/local/PyXB-1.2.6.bin/lib/python2.7/site-packages/:${PYTHONPATH}" + +cata_foam_genere.py: cata_foam_genere.xsd + $(PYXB) -m $(basename $@) -u $^ --write-for-customization + @echo "You may use : export PYTHONPATH=/local/PyXB-1.2.6.bin/lib/python2.7/site-packages/:${PYTHONPATH}" + +cata_1_genere.py: cata_1_genere.xsd + $(PYXB) -m $(basename $@) -u $^ --write-for-customization + xmllint --schema XMLSchema11_local.xsd --noout $^ + @echo "You may use : export PYTHONPATH=/local/PyXB-1.2.6.bin/lib/python2.7/site-packages/:${PYTHONPATH}" + +xml: + @echo "Reminder: a .comm file is needed for this step" + ./generateXML.py -c cata_1.py cata_1_test_1.comm + +clean: + rm -f *.pyc *~ + rm -rf cata_1_genere.py cata_Vimmp_genere.py cata_gromacs_genere.py cata_foam_genere.py raw + rm -f cata_1_genere.xsd cata_Vimmp_genere.xsd cata_gromacs_genere.xsd cata_foam_genere.xsd + +check: + xmllint --schema XMLSchema11.xsd cata_1_genere.xsd + diff --git a/Tests/MappingAccasXsd/XMLSchema11_local.xsd b/Tests/MappingAccasXsd/XMLSchema11_local.xsd new file mode 100755 index 00000000..baa31a09 --- /dev/null +++ b/Tests/MappingAccasXsd/XMLSchema11_local.xsd @@ -0,0 +1,1950 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ]> + + + + + Part 1 version: structures.xsd (rec-20120405) + Part 2 version: datatypes.xsd (rec-20120405) + + + + + + The schema corresponding to this document is normative, + with respect to the syntactic constraints it expresses in the + XML Schema Definition Language. The documentation (within 'documentation' elements) + below, is not normative, but rather highlights important aspects of + the W3C Recommendation of which this is a part. + + See below (at the bottom of this document) for information about + the revision and namespace-versioning policy governing this + schema document. + + + + + + The simpleType element and all of its members are defined + towards the end of this schema document. + + + + + Get access to the xml: attribute groups for xml:lang + as declared on 'schema' and 'documentation' below + + + + + + + This type is extended by almost all schema types + to allow attributes from other namespaces to be + added to user schemas. + + + + + + + + + + + + This type is extended by all types which allow annotation + other than <schema> itself + + + + + + + + + + + + + + + + + + + + + + + + This group is for the + elements which occur freely at the top level of schemas. + All of their types are based on the "annotated" type by extension. + + + + + + + + + + + + This group is for the + elements which can self-redefine (see <redefine> below). + + + + + + + + + + + + A utility type, not for public use + + + + + + + + + + A utility type, not for public use + + + + + + + + + + A utility type, not for public use + + #all or (possibly empty) subset of {extension, restriction} + + + + + + + + + + + + + + + + A utility type, not for public use + + + + + + + + + + + + A utility type, not for public use + + #all or (possibly empty) subset of {extension, restriction, list, union} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + for maxOccurs + + + + + + + + + + + + + for all particles + + + + + + + + for element, group and attributeGroup, + which both define and reference + + + + + + + + 'complexType' uses this + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + This branch is short for + <complexContent> + <restriction base="xs:anyType"> + ... + </restriction> + </complexContent> + + + + + + + + + + + + + + + + Will be restricted to required or prohibited + + + + + + Not allowed if simpleContent child is chosen. + May be overridden by setting on complexContent child. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + This choice is added simply to + make this a valid restriction per the REC + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Overrides any setting on complexType parent. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + This choice is added simply to + make this a valid restriction per the REC + + + + + + + + + + + + + + + + + No typeDefParticle group reference + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + A utility type, not for public use + + #all or (possibly empty) subset of {substitution, extension, + restriction} + + + + + + + + + + + + + + + + + + + + + + + + The element element can be used either + at the top level to define an element-type binding globally, + or within a content model to either reference a globally-defined + element or type or declare an element-type binding locally. + The ref form is not allowed at the top level. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + This type is used for 'alternative' elements. + + + + + + + + + + + + + + + + + + group type for explicit groups, named top-level groups and + group references + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + group type for the three kinds of group + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + This choice with min/max is here to + avoid a pblm with the Elt:All/Choice/Seq + Particle derivation constraint + + + + + + + + + + + + + + + + + + + + + + + Only elements allowed inside + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + simple type for the value of the 'namespace' attr of + 'any' and 'anyAttribute' + + + + Value is + ##any - - any non-conflicting WFXML/attribute at all + + ##other - - any non-conflicting WFXML/attribute from + namespace other than targetNS + + ##local - - any unqualified non-conflicting WFXML/attribute + + one or - - any non-conflicting WFXML/attribute from + more URI the listed namespaces + references + (space separated) + + ##targetNamespace or ##local may appear in the above list, to + refer to the targetNamespace of the enclosing + schema or an absent targetNamespace respectively + + + + + A utility type, not for public use + + + + + + + + A utility type, not for public use + + + + + + + + + + + + + + + + + + A utility type, not for public use + + + + + + + + + + A utility type, not for public use + + + + + + + + + + + + + + + + + + + A utility type, not for public use + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + A subset of XPath expressions for use +in selectors + A utility type, not for public +use + + + + + + + + + + + + + + + + + + + + + A subset of XPath expressions for use +in fields + A utility type, not for public +use + + + + + + + + + + + + + + + + + + + + + + + + + The three kinds of identity constraints, all with + type of or derived from 'keybase'. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + A utility type, not for public use + + A public identifier, per ISO 8879 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + notations for use within schema documents + + + + + + + Not the real urType, but as close an approximation as we can + get in the XML representation + + + + + + + + + + In keeping with the XML Schema WG's standard versioning policy, + the material in this schema document will persist at the URI + http://www.w3.org/2012/04/XMLSchema.xsd. + + At the date of issue it can also be found at the URI + http://www.w3.org/2009/XMLSchema/XMLSchema.xsd. + + The schema document at that URI may however change in the future, + in order to remain compatible with the latest version of XSD + and its namespace. In other words, if XSD or the XML Schema + namespace change, the version of this document at + http://www.w3.org/2009/XMLSchema/XMLSchema.xsd will change accordingly; + the version at http://www.w3.org/2012/04/XMLSchema.xsd will not change. + + Previous dated (and unchanging) versions of this schema document + include: + + http://www.w3.org/2012/01/XMLSchema.xsd + (XSD 1.1 Proposed Recommendation) + + http://www.w3.org/2011/07/XMLSchema.xsd + (XSD 1.1 Candidate Recommendation) + + http://www.w3.org/2009/04/XMLSchema.xsd + (XSD 1.1 Candidate Recommendation) + + http://www.w3.org/2004/10/XMLSchema.xsd + (XSD 1.0 Recommendation, Second Edition) + + http://www.w3.org/2001/05/XMLSchema.xsd + (XSD 1.0 Recommendation, First Edition) + + + + + + + + + + + + A utility type, not for public use + + + + + + + + + + + + + + + + + + + + #all or (possibly empty) subset of {restriction, extension, union, list} + + + A utility type, not for public use + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Can be restricted to required or forbidden + + + + + + + + + + + + + + + + + Required at the top level + + + + + + + + + + + + + + + + + + Forbidden when nested + + + + + + + + + + + + + + + + + An abstract element, representing facets in general. + The facets defined by this spec are substitutable for + this element, and implementation-defined facets should + also name this as a substitution-group head. + + + + + + + + + + + + + + + + + base attribute and simpleType child are mutually + exclusive, but one or other is required + + + + + + + + + + + + + + + itemType attribute and simpleType child are mutually + exclusive, but one or other is required + + + + + + + + + + + + + + + + + memberTypes attribute must be non-empty or there must be + at least one simpleType child + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + In keeping with the XML Schema WG's standard versioning policy, + this schema document will persist at the URI + http://www.w3.org/2012/04/datatypes.xsd. + + At the date of issue it can also be found at the URI + http://www.w3.org/2009/XMLSchema/datatypes.xsd. + + The schema document at that URI may however change in the future, + in order to remain compatible with the latest version of XSD + and its namespace. In other words, if XSD or the XML Schema + namespace change, the version of this document at + http://www.w3.org/2009/XMLSchema/datatypes.xsd will change accordingly; + the version at http://www.w3.org/2012/04/datatypes.xsd will not change. + + Previous dated (and unchanging) versions of this schema document + include: + + http://www.w3.org/2012/01/datatypes.xsd + (XSD 1.1 Proposed Recommendation) + + http://www.w3.org/2011/07/datatypes.xsd + (XSD 1.1 Candidate Recommendation) + + http://www.w3.org/2009/04/datatypes.xsd + (XSD 1.1 Candidate Recommendation) + + http://www.w3.org/2004/10/datatypes.xsd + (XSD 1.0 Recommendation, Second Edition) + + http://www.w3.org/2001/05/datatypes.xsd + (XSD 1.0 Recommendation, First Edition) + + + + + + + diff --git a/Tests/MappingAccasXsd/cata_1.py b/Tests/MappingAccasXsd/cata_1.py new file mode 100644 index 00000000..b15c858b --- /dev/null +++ b/Tests/MappingAccasXsd/cata_1.py @@ -0,0 +1,39 @@ +#import os +#import types +#monFile=os.path.abspath(__file__) + +from Accas import * +import types + +class User_Data(UserASSD): pass + +#Be careful when modidying the order/names od the test_simp since they are used bye the documentation xsd_mapping.rst +#beginJdC +JdC = JDC_CATA(code='Test1',) +Test_proc_1 = PROC(nom = 'Test_proc_1', + test_simp_1 = SIMP(statut='o', typ='TXM', defaut='text_simp_txt_1'), + test_simp_1_1 = SIMP(statut='o', typ='TXM', defaut='text_simp_txt_1'), + test_simp_1_2 = SIMP(statut='o', typ='TXM', defaut='text_simp_txt_1_2'), + test_simp_1_3 = SIMP(statut='o', typ='TXM', min=2, max=3, + defaut=['value_a','value_b' ], + into=['value_a','value_b', 'value_c' ]), + test_simp_2 = SIMP(statut='o', typ='I' , defaut=2), + test_simp_2_1 = SIMP(statut='o', typ='I' , defaut=5, val_min=5, val_max=10), + test_simp_2_2 = SIMP(statut='o', typ='I' , defaut=6, into=[4,5,6]), + test_simp_2_3 = SIMP(statut='o', typ='I' , min=3, max='**'), + test_simp_2_4 = SIMP(statut='f', typ='I' , min=3, max=6 ), + test_simp_2_5 = SIMP(statut='f', typ='I' , min=3, max=6,defaut=[1,2,3,4]), + test_simp_3 = SIMP(statut='o', typ='R', defaut=3.0), + test_simp_4 = SIMP(statut='o', typ=bool, defaut=True), +# Type non gere ds le XSD +# test_simp_5 = SIMP(statut='o', typ='C' , defaut=('RI',1,0)), +# test_simp_5 = SIMP(statut='o', typ='C' , defaut=3+2j), + test_simp_6 = SIMP(statut='o' , typ='TXM' , max="**",min=3), + test_simp_7_1 = SIMP(statut='o' , typ='Repertoire' ), + test_simp_7_2 = SIMP(statut='o' , typ='Fichier' ), + test_simp_7_3 = SIMP(statut='o' , typ='FichierOuRepertoire' ), + test_simp_8_1 = SIMP(statut='o' , typ=(User_Data,'createObject')), + test_simp_8_2 = SIMP(statut='o' , typ=User_Data), +) +#endJdC + diff --git a/Tests/MappingAccasXsd/cata_1_test_1.py b/Tests/MappingAccasXsd/cata_1_test_1.py new file mode 100644 index 00000000..a2bb1287 --- /dev/null +++ b/Tests/MappingAccasXsd/cata_1_test_1.py @@ -0,0 +1,15 @@ +#! /usr/bin/env python +# -*- coding:utf-8 -*- + +import cata_1_genere as mdm +import pyxb + +#THESE CONFIGURATION LINES ARE FOR ADVANCED INTERNAL TEST ONLY, YOU DON'T NEED TO CONFIGURE PYXB LIKE THIS +#mdm.pyxb.GlobalValidationConfig._setContentInfluencesGeneration(mdm.pyxb.GlobalValidationConfig.NEVER) +mdm.pyxb.GlobalValidationConfig._setContentInfluencesGeneration(mdm.pyxb.GlobalValidationConfig.ALWAYS) +mdm.pyxb.GlobalValidationConfig._setInvalidElementInContent(mdm.pyxb.GlobalValidationConfig.RAISE_EXCEPTION) +mdm.pyxb.GlobalValidationConfig._setOrphanElementInContent(mdm.pyxb.GlobalValidationConfig.RAISE_EXCEPTION) + +o1 = mdm.CreateFromDocument(open('cata_1_test_1.xml').read()) +print(o1.toDOM().toprettyxml()) + diff --git a/Tests/MappingAccasXsd/generateXML.py b/Tests/MappingAccasXsd/generateXML.py new file mode 100755 index 00000000..8e566329 --- /dev/null +++ b/Tests/MappingAccasXsd/generateXML.py @@ -0,0 +1,36 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +# Copyright (C) 2007-2013 EDF R&D +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +# +""" + Ce module sert a lancer EFICAS configure pour Meteo +""" +# Modules Python +# Modules Eficas +import prefs +name='prefs_'+prefs.code +__import__(name) + +import sys +import os +sys.path.append(os.path.join(os.path.abspath(os.path.dirname(__file__)),'../../')) + +import prefs +from InterfaceQT4 import eficas_go +eficas_go.genereXML(code=prefs.code) diff --git a/Tests/MappingAccasXsd/generateXSD.py b/Tests/MappingAccasXsd/generateXSD.py new file mode 100755 index 00000000..ed550619 --- /dev/null +++ b/Tests/MappingAccasXsd/generateXSD.py @@ -0,0 +1,36 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +# Copyright (C) 2007-2013 EDF R&D +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +# +""" + Ce module sert a lancer EFICAS configure pour Meteo +""" +# Modules Python +# Modules Eficas +import prefs +name='prefs_'+prefs.code +__import__(name) + +import sys +import os +sys.path.append(os.path.join(os.path.abspath(os.path.dirname(__file__)),'../..')) + +import prefs +from InterfaceQT4 import eficas_go +eficas_go.genereXSD(code=prefs.code) diff --git a/Tests/MappingAccasXsd/prefs.py b/Tests/MappingAccasXsd/prefs.py new file mode 100644 index 00000000..98adee91 --- /dev/null +++ b/Tests/MappingAccasXsd/prefs.py @@ -0,0 +1,22 @@ +# Copyright (C) 2007-2012 EDF R&D +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +# +code="Test" +import sys, os +if os.path.dirname(os.path.abspath(__file__)) not in sys.path : + sys.path.insert(0,os.path.dirname(os.path.abspath(__file__))) diff --git a/Tests/MappingAccasXsd/prefs_Test.py b/Tests/MappingAccasXsd/prefs_Test.py new file mode 100644 index 00000000..ef68e065 --- /dev/null +++ b/Tests/MappingAccasXsd/prefs_Test.py @@ -0,0 +1,61 @@ +# -*- coding: utf-8 -*- +# maConfiguration MANAGEMENT OF EDF VERSION +# ====================================================================== +# COPYRIGHT (C) 1991 - 2002 EDF R&D WWW.CODE-ASTER.ORG +# THIS PROGRAM IS FREE SOFTWARE; YOU CAN REDISTRIBUTE IT AND/OR MODIFY +# IT UNDER THE TERMS OF THE GNU GENERAL PUBLIC LICENSE AS PUBLISHED BY +# THE FREE SOFTWARE FOUNDATION; EITHER VERSION 2 OF THE LICENSE, OR +# (AT YOUR OPTION) ANY LATER VERSION. +# +# THIS PROGRAM IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT +# WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF +# MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. SEE THE GNU +# GENERAL PUBLIC LICENSE FOR MORE DETAILS. +# +# YOU SHOULD HAVE RECEIVED A COPY OF THE GNU GENERAL PUBLIC LICENSE +# ALONG WITH THIS PROGRAM; IF NOT, WRITE TO EDF R&D CODE_ASTER, +# 1 AVENUE DU GENERAL DE GAULLE, 92141 CLAMART CEDEX, FRANCE. +# +# +# ====================================================================== + +import os,sys +# repIni sert a localiser le fichier editeur.ini +# Obligatoire +repIni=os.path.dirname(os.path.abspath(__file__)) +INSTALLDIR=os.path.join(repIni,'..') +sys.path[:0]=[INSTALLDIR] + + +# lang indique la langue utilisee pour les chaines d'aide : fr ou ang +lang='ang' + +# Codage des strings qui accepte les accents (en remplacement de 'ascii') +encoding='iso-8859-1' + +# +#typeDeCata='XML' +catalogues=( +# ('VimmpEssai','VimmpEssai',os.path.join(repIni,'cata_Vimmp_2304.py'),'python','python'), + ('Cata1','Cata1',os.path.join(repIni,'cata_1.py'),'xml','python'), +# ('Vimmp','Vimmp',os.path.join(repIni,'cata_Vimmp.py'),'xml','python'), +# ('MD','VimmpG',os.path.join(repIni,'cata_gromacs.py'),'xml','python'), +# ('VimmpEN','VimmpEN',os.path.join(repIni,'cata_en.py'),'python','python'), +) +nombreDeBoutonParLigne=4 +#simpleClic=True +closeFrameRechercheCommande=False +closeFrameRechercheCommandeSurPageDesCommandes=True +#boutonDsMenuBar=False +#closeArbre=True +#afficheListesPliees=False +#afficheCommandesPliees = False +afficheCommandesPliees=True +enleverActionStructures = True +enleverParametres = True +enleverSupprimer = True +#ajoutExecution = True +#translatorFichier = os.path.join(repIni,'Meteo') +#withXSD=True +#dumpXSD=True +#afficheIhm=False diff --git a/Tests/MappingAccasXsd/qtEficasTest.py b/Tests/MappingAccasXsd/qtEficasTest.py new file mode 100755 index 00000000..cd6bba1a --- /dev/null +++ b/Tests/MappingAccasXsd/qtEficasTest.py @@ -0,0 +1,36 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +# Copyright (C) 2007-2013 EDF R&D +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +# +""" + Ce module sert a lancer EFICAS configure pour TEST +""" +# Modules Python +# Modules Eficas +import prefs +name='prefs_'+prefs.code +__import__(name) + +import sys +import os +sys.path.append(os.path.join(os.path.abspath(os.path.dirname(__file__)),'../..')) + +import prefs +from InterfaceQT4 import eficas_go +eficas_go.lanceEficas(code=prefs.code)