Check for file:// prefix on XML names for SAX parsers

svn: r1193
This commit is contained in:
Don Allingham 2002-11-18 14:19:28 +00:00
parent b55ec8a3ec
commit a3708b62dc

View File

@ -1,4 +1,4 @@
#
# Gramps - a GTK+/GNOME based genealogy program # Gramps - a GTK+/GNOME based genealogy program
# #
# Copyright (C) 2000 Donald N. Allingham # Copyright (C) 2000 Donald N. Allingham
@ -793,6 +793,8 @@ class StyleSheetList:
try: try:
parser = make_parser() parser = make_parser()
parser.setContentHandler(SheetParser(self)) parser.setContentHandler(SheetParser(self))
if self.file[0:7] != "file://":
self.file = "file://" + self.file
parser.parse(self.file) parser.parse(self.file)
except (IOError,OSError,SAXParseException): except (IOError,OSError,SAXParseException):
pass pass