Salome HOME
projects
/
tools
/
eficas.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
chgt Copyrigth
[tools/eficas.git]
/
Editeur
/
chercheNbElem.py
diff --git
a/Editeur/chercheNbElem.py
b/Editeur/chercheNbElem.py
index 29a03d6a80e62880184613a36c28b3afc6efb215..3dcec6048a17ab9421444aadd592b6fb499a86ec 100755
(executable)
--- a/
Editeur/chercheNbElem.py
+++ b/
Editeur/chercheNbElem.py
@@
-1,6
+1,6
@@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-# Copyright (C) 2007-20
13
EDF R&D
+# Copyright (C) 2007-20
21
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
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
@@
-34,16
+34,15
@@
class ChercheInto:
self.cata=cata
self.dictInto={}
mesCommandes=self.cata.JdC.commandes
self.cata=cata
self.dictInto={}
mesCommandes=self.cata.JdC.commandes
- print "________________________"
for maCommande in mesCommandes:
for maCommande in mesCommandes:
- print
maCommande.nom
- print
maCommande.entites
- print
len(maCommande.entites)
+ print
(maCommande.nom)
+ print
(maCommande.entites )
+ print
(len(maCommande.entites) )
# def construitListeInto(self,e):
# if isinstance(e,Accas.A_BLOC.BLOC) :
# def construitListeInto(self,e):
# if isinstance(e,Accas.A_BLOC.BLOC) :
-# print
e.condition
+# print
(e.condition.
# for nomFils, fils in e.entites.items():
# self.construitListeInto(fils)
# for nomFils, fils in e.entites.items():
# self.construitListeInto(fils)
@@
-71,7
+70,7
@@
if __name__ == "__main__" :
import readercata
monreadercata = readercata.READERCATA( parent, parent )
Eficas.readercata=monreadercata
import readercata
monreadercata = readercata.READERCATA( parent, parent )
Eficas.readercata=monreadercata
- monCata=monreadercata.cata
[0]
+ monCata=monreadercata.cata
monConstruitInto=ChercheInto(monCata,code)
monConstruitInto=ChercheInto(monCata,code)