Fixed unicode translation problem

svn: r953
This commit is contained in:
Don Allingham 2002-05-02 21:53:30 +00:00
parent 8bc434378f
commit 70658a52c8

View File

@ -1019,6 +1019,10 @@ class DrawReportDialog(ReportDialog):
"""Create a document of the type requested by the user."""
self.doc = self.format(self.selected_style,self.paper,self.orien)
import latin_utf8
u2l = latin_utf8.utf8_to_latin
class TemplateParser(handler.ContentHandler):
def __init__(self,data,fpath):
handler.ContentHandler.__init__(self)
@ -1030,7 +1034,7 @@ class TemplateParser(handler.ContentHandler):
def startElement(self,tag,attrs):
if tag == "template":
self.data[attrs['title']] = attrs['file']
self.data[u2l(attrs['title'])] = u2l(attrs['file'])
def characters(self, data):
pass