Diff for /MPIWGWeb/xmlhelper.py between versions 1.3 and 1.4

version 1.3, 2004/08/11 13:02:04 version 1.4, 2004/09/01 09:35:12
Line 53  def proj2hash(xmlstring): Line 53  def proj2hash(xmlstring):
                   
         sec=parseSection(section)          sec=parseSection(section)
         if sec[0]=="WEB_project_header": # Sonderfall project          if sec[0]=="WEB_project_header": # Sonderfall project
   
             addToDict(list,'WEB_project_header',sec[1]) # store title              addToDict(list,'WEB_project_header',sec[1]) # store title
             addToDict(list,'WEB_project_description',sec[2]) #store description              addToDict(list,'WEB_project_description',sec[2]) #store description
         else: # no information in heading          else: # no information in heading
   
             addToDict(list,sec[0],sec[2])              addToDict(list,sec[0],sec[2])
   
     #evaluate higher level sections      #evaluate higher level sections
Line 78  def proj2hash(xmlstring): Line 80  def proj2hash(xmlstring):
 def parseSection(section):  def parseSection(section):
     type=""      type=""
     header=""      header=""
     for heading in section.getElementsByTagName('heading'):      for heading in section.childNodes:
           if getattr(heading,'tagName','')=="heading":
               
         type=heading.getAttribute('class')          type=heading.getAttribute('class')
         header=getText(heading.childNodes)          header=getText(heading.childNodes)
   

Removed from v.1.3  
changed lines
  Added in v.1.4


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>