Diff for /MPIWGWeb/Attic/updatePersonalWWW.py between versions 1.1.2.12 and 1.1.2.14

version 1.1.2.12, 2012/01/10 12:37:03 version 1.1.2.14, 2012/01/26 10:11:12
Line 6  from MPIWGHelper import unicodify, utf8i Line 6  from MPIWGHelper import unicodify, utf8i
   
 from xml import sax  from xml import sax
 from xml.sax.handler import ContentHandler  from xml.sax.handler import ContentHandler
 #from amara import saxtools  
   
 # namespace for FileMaker8  # namespace for FileMaker8
 fm_ns = 'http://www.filemaker.com/fmpxmlresult'  fm_ns = 'http://www.filemaker.com/fmpxmlresult'
Line 93  class xml_handler(ContentHandler): Line 92  class xml_handler(ContentHandler):
             self.currentName=self.fieldNames[self.currentData]              self.currentName=self.fieldNames[self.currentData]
             self.currentData+=1              self.currentData+=1
             self.currentTag="data"              self.currentTag="data"
               logging.debug("currentData"+str(self.currentData))
               logging.debug("currentName"+str(self.currentName))
               self.currentRow[self.currentName]="" #anlegen des eintrages 
                           
     def endElement(self,name):      def endElement(self,name):
         if (name.lower() == "data") :          if (name.lower() == "data") :
Line 114  class xml_handler(ContentHandler): Line 116  class xml_handler(ContentHandler):
         if self.result.has_key(self.currentRow['key']):          if self.result.has_key(self.currentRow['key']):
              logging.error("Key %s not unique"%self.currentRow['key'])               logging.error("Key %s not unique"%self.currentRow['key'])
               
           logging.debug("currentrow:"+self.currentName)
           logging.debug("currentname:"+self.currentRow['key'])
           
         if self.currentName is not None:          if self.currentName is not None:
             self.result[self.currentRow['key']]=self.currentRow.copy()              self.result[self.currentRow['key']]=self.currentRow.copy()
 #        #      

Removed from v.1.1.2.12  
changed lines
  Added in v.1.1.2.14


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