From 1bae0ade95d2e4340db3115710d692d3fc2046fe Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Fri, 25 Oct 2002 00:03:09 +0000 Subject: [PATCH] Added 'file://' prefix to parser file names - thanks to Jay Treacy svn: r1147 --- src/GenericFilter.py | 2 +- src/Report.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/GenericFilter.py b/src/GenericFilter.py index 449019cc1..61d373f49 100644 --- a/src/GenericFilter.py +++ b/src/GenericFilter.py @@ -715,7 +715,7 @@ class GenericFilterList: try: parser = make_parser() parser.setContentHandler(FilterParser(self)) - parser.parse(self.file) + parser.parse('file://' + self.file) except (IOError,OSError,SAXParseException): pass diff --git a/src/Report.py b/src/Report.py index c0315e954..97d8be28f 100644 --- a/src/Report.py +++ b/src/Report.py @@ -1077,11 +1077,11 @@ try: parser = make_parser() path = const.template_dir parser.setContentHandler(TemplateParser(_template_map,path)) - parser.parse("%s/templates.xml" % path) + parser.parse("file://%s/templates.xml" % path) parser = make_parser() path = os.path.expanduser("~/.gramps/templates") parser.setContentHandler(TemplateParser(_template_map,path)) - parser.parse("%s/templates.xml" % path) + parser.parse("file://%s/templates.xml" % path) except (IOError,OSError,SAXParseException): pass