* src/GrampsDb/_ReadXML.py (start_url): Parse URL type.

svn: r6666
This commit is contained in:
Alex Roitman 2006-05-15 05:37:54 +00:00
parent 042bcff01c
commit 00e46b9a0c
2 changed files with 2 additions and 0 deletions

View File

@ -1,4 +1,5 @@
2006-05-14 Alex Roitman <shura@gramps-project.org> 2006-05-14 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_ReadXML.py (start_url): Parse URL type.
* example/gramps/exapmle.gramps: Add repositories, use new XML. * example/gramps/exapmle.gramps: Add repositories, use new XML.
* example/gramps/data.gramps: Add repositories, use new XML. * example/gramps/data.gramps: Add repositories, use new XML.
* src/DateHandler/__init__.py: Remove unneeded imports. * src/DateHandler/__init__.py: Remove unneeded imports.

View File

@ -903,6 +903,7 @@ class GrampsParser(UpdateCallback):
url.path = attrs["href"] url.path = attrs["href"]
url.description = attrs.get("description",'') url.description = attrs.get("description",'')
url.privacy = bool(attrs.get('priv')) url.privacy = bool(attrs.get('priv'))
url.type.set_from_xml_str(attrs['type'])
if self.person: if self.person:
self.person.add_url(url) self.person.add_url(url)
elif self.placeobj: elif self.placeobj: