32 |
def __init__(self, destination, stylesheet, options={}): |
def __init__(self, destination, stylesheet, options={}): |
33 |
self.dest = destination |
self.dest = destination |
34 |
self.options = options |
self.options = options |
35 |
|
try: |
36 |
|
self.encoding = options['encoding'] |
37 |
|
except: |
38 |
|
self.encoding = gConfig('textEncoding') |
39 |
|
|
40 |
|
def writeout(self, text): |
41 |
|
self.dest.write(text.encode(self.encoding,'replace')) |
42 |
|
|
43 |
def BeginReport(self): |
def BeginReport(self): |
44 |
pass |
pass |
74 |
self._head = [] |
self._head = [] |
75 |
|
|
76 |
def EndTableHead(self): |
def EndTableHead(self): |
77 |
self.dest.write('%s\n' % ','.join(self._head)) |
self.writeout('%s\n' % ','.join(self._head)) |
78 |
|
|
79 |
def BeginColHead(self): |
def BeginColHead(self): |
80 |
pass |
pass |
86 |
self._row = [] |
self._row = [] |
87 |
|
|
88 |
def EndRow(self): |
def EndRow(self): |
89 |
self.dest.write('%s\n' % ','.join(self._row)) |
self.writeout('%s\n' % ','.join(self._row)) |
90 |
|
|
91 |
def BeginCol(self): |
def BeginCol(self): |
92 |
pass |
pass |