fix xml parsing path

svn: r6628
This commit is contained in:
Don Allingham
2006-05-12 17:20:19 +00:00
parent 05f3bd4b47
commit 63beadfa2d
4 changed files with 45 additions and 2 deletions

View File

@@ -1,4 +1,7 @@
FAMILY_DETAILS = ('preferences','family-details', 0)
COMPLETE_COLOR = ('preferences','complete-color', 2)
TODO_COLOR = ('preferences','todo-color', 2)
CUSTOM_MARKER_COLOR = ('preferences','custom-marker-color', 2)
FAMILY_WARN = ('preferences','family-warn', 0)
HIDE_EP_MSG = ('preferences','hide-ep-msg', 0)
LAST_VIEW = ('preferences','last-view', 1)
@@ -50,6 +53,9 @@ WEBSITE_DIRECTORY = ('paths','website-directory', 2)
default_value = {
FAMILY_DETAILS : True,
COMPLETE_COLOR : '#FF0000',
TODO_COLOR : '#FF0000',
CUSTOM_MARKER_COLOR : '#00FF00',
FAMILY_WARN : True,
HIDE_EP_MSG : False,
LAST_VIEW : 0,

View File

@@ -306,7 +306,7 @@ class BookList:
"""
self.bookmap = {}
self.file = os.path.join('file:',const.home_dir,filename)
self.file = os.path.join(const.home_dir,filename)
self.parse()
def delete_book(self,name):
@@ -391,7 +391,7 @@ class BookList:
try:
p = make_parser()
p.setContentHandler(BookParser(self))
p.parse(self.file)
p.parse("file://" + self.file)
except (IOError,OSError,SAXParseException):
pass