From 10430f3321cb25f87e99a75dab22c4b1ccd0fb8a Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Sun, 17 Jun 2007 00:47:33 +0000 Subject: [PATCH] 2007-06-16 Alex Roitman * src/GrampsDbUtils/_ReadXML.py (start_url): Correctly parse url type. svn: r8565 --- ChangeLog | 3 +++ src/GrampsDbUtils/_ReadXML.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 48eda647c..e32d329e8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2007-06-16 Alex Roitman + * src/GrampsDbUtils/_ReadXML.py (start_url): Correctly parse url type. + 2007-06-16 Don Allingham * src/GrampsCfg.py: additional database path * src/Config/_GrampsConfigKeys.py: additional database path diff --git a/src/GrampsDbUtils/_ReadXML.py b/src/GrampsDbUtils/_ReadXML.py index 6c3a975b4..d27e3ea9b 100644 --- a/src/GrampsDbUtils/_ReadXML.py +++ b/src/GrampsDbUtils/_ReadXML.py @@ -1009,7 +1009,7 @@ class GrampsParser(UpdateCallback): url.path = attrs["href"] url.set_description(attrs.get("description",'')) url.private = bool(attrs.get('priv')) - url.type.set_from_xml_str(attrs['type']) + url.type.set_from_xml_str(attrs.get('type','')) if self.person: self.person.add_url(url) elif self.placeobj: