* 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 1636a418cd
commit 4a72a456d8
2 changed files with 2 additions and 0 deletions

View File

@ -1,4 +1,5 @@
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/data.gramps: Add repositories, use new XML.
* src/DateHandler/__init__.py: Remove unneeded imports.

View File

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