3
|
1 |
#
|
|
2 |
# Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
# All rights reserved.
|
|
4 |
# This component and the accompanying materials are made available
|
|
5 |
# under the terms of the License "Eclipse Public License v1.0"
|
|
6 |
# which accompanies this distribution, and is available
|
|
7 |
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
#
|
|
9 |
# Initial Contributors:
|
|
10 |
# Nokia Corporation - initial contribution.
|
|
11 |
#
|
|
12 |
# Contributors:
|
|
13 |
#
|
|
14 |
# Description:
|
|
15 |
# Base Class for defining filter classes
|
|
16 |
# All filter classes that get defined should derive from this base class
|
|
17 |
#
|
|
18 |
|
|
19 |
class Filter(object):
|
|
20 |
|
|
21 |
def open(self, raptor):
|
|
22 |
return False
|
|
23 |
|
|
24 |
def write(self, text):
|
|
25 |
return False
|
|
26 |
|
|
27 |
def summary(self):
|
|
28 |
return False
|
|
29 |
|
|
30 |
def close(self):
|
|
31 |
return False
|
|
32 |
|
|
33 |
def formatError(self, message):
|
|
34 |
return "sbs: error: " + message + "\n"
|