12     this file is part of the project scolasync 
   14     Copyright (C) 2012 Georges Khaznadar <georgesk@ofset.org> 
   16     This program is free software: you can redistribute it and/or modify 
   17     it under the terms of the GNU General Public License as published by 
   18     the Free Software Foundation, either version3 of the License, or 
   19     (at your option) any later version. 
   21     This program is distributed in the hope that it will be useful, 
   22     but WITHOUT ANY WARRANTY; without even the implied warranty of 
   23     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
   24     GNU General Public License for more details. 
   26     You should have received a copy of the GNU General Public License 
   27     along with this program.  If not, see <http://www.gnu.org/licenses/>. 
   30 import xml.dom.minidom, copy
 
   60         return "Cette fonction est abstraite, ne l'appelez pas ainsi." 
   67         return "Cette fonction est abstraite, ne l'appelez pas ainsi." 
   79         AbstractGestClasse.__init__(self,f)
 
   83                 file=open(f, 
"r", encoding=
"iso-8859-1")
 
  102         for e 
in el.childNodes:
 
  103             if e.nodeType==e.TEXT_NODE 
and e.data.strip()==
"":
 
  137         if  el.nodeName.lower()==
"eleve" and el.getAttribute(
"ELEVE_ID")==self.
currentID:
 
  146         if  el.nodeName.lower()==
"structures_eleve":
 
  147             structures=el.getElementsByTagName(
"STRUCTURE")
 
  148             if len (structures) > 0:
 
  149                 if structures[0].getElementsByTagName(
"TYPE_STRUCTURE")[0].firstChild.data==
"D":
 
  150                     if structures[0].getElementsByTagName(
"CODE_STRUCTURE")[0].firstChild.data==self.
currentClassName:
 
  151                         idEleve=el.getAttribute(
"ELEVE_ID")
 
  159         if el.nodeName.lower()==
"structure":
 
  160             if el.getElementsByTagName(
"TYPE_STRUCTURE")[0].firstChild.data==
"D":
 
  161                 self.
classes.add(el.getElementsByTagName(
"CODE_STRUCTURE")[0].firstChild.data)
 
  173             items.append(el.getElementsByTagName(f)[0].firstChild.data)
 
  174         items.append(el.getAttribute(
"ELEVE_ID"))
 
  175         return "_".join(items)
 
  185             items.append(el.getElementsByTagName(f)[0].firstChild.data)
 
  186         return " ".join(items)
 
  197         for e 
in el.childNodes:
 
  201         return self.
donnees.toprettyxml(indent=
"  ",encoding=
"utf-8")