sbsv2/raptor/python/plugins/filter_broken.py
author Richard Taylor <richard.i.taylor@nokia.com>
Thu, 28 Jan 2010 16:06:25 +0000
branchfix
changeset 176 b601167a8189
permissions -rw-r--r--
sf bug 1519: unescaped entities in XML logs (from make errors)

#
# Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
# All rights reserved.
# This component and the accompanying materials are made available
# under the terms of the License "Eclipse Public License v1.0"
# which accompanies this distribution, and is available
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
#
# Initial Contributors:
# Nokia Corporation - initial contribution.
#
# Contributors:
#
# Description: 
# Example of a Filter class using the SAX parser base class
#

import filter_interface

class FilterBroken(filter_interface.FilterSAX):
	
	def startDocument(self):
		self.first = True
		
	def startElement(self, name, attributes):
		pass
	
	def characters(self, char):
		pass
		
	def endElement(self, name):
		pass
	
	def endDocument(self):
		pass
	
	def error(self, exception):
		pass
		
	def fatalError(self, exception):
		if self.first:
			print "fatal error:", str(exception)
			self.first = False
		
	def warning(self, exception):
		pass
	
# the end