• Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Context Navigation

  • ← Previous Change
  • Next Change →

Changeset 170 for Xml/Validator/WebApp/validator/OmeValidator.py

Show
Ignore:
Timestamp:
05/14/08 11:19:00 (6 months ago)
Author:
andrew
Message:

Added error/warning lists to ElementAggregator? to catch the TiffData? errors.

Files:
1 modified

  • Xml/Validator/WebApp/validator/OmeValidator.py (modified) (2 diffs)

Legend:

Unmodified
Added
Removed
  • Xml/Validator/WebApp/validator/OmeValidator.py

    r158 r170  
    340340                except  sax.SAXParseException: 
    341341                        self.errorList.append(ParseMessage(None, None, None, "XmlError",None, "Parsing of XML failed")) 
     342                self.errorList.extend(handlerContent.errorList) 
     343                self.warningList.extend(handlerContent.warningList) 
    342344                self.errorList.extend(handlerError.errorList) 
    343345                self.warningList.extend(handlerError.warningList) 
    … …  
    531533class ElementAggregator(sax.ContentHandler): 
    532534        inBinData = False 
     535         
     536        def __init__(self): 
     537                self.errorList = list() 
     538                self.warningList = list() 
    533539         
    534540        def startDocument(self): 

Download in other formats:

  • Unified Diff
  • Zip Archive

Trac Powered

Powered by Trac 0.11
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/