0001011: XML import loses media objects when media object has no title.

svn: r8380
This commit is contained in:
Brian Matherly
2007-04-12 11:51:53 +00:00
parent 79fd3aaf39
commit 5ce7b7c539
2 changed files with 8 additions and 1 deletions

View File

@@ -1035,7 +1035,10 @@ class GrampsParser(UpdateCallback):
def start_file(self,attrs):
self.object.mime = attrs['mime']
self.object.desc = attrs['description']
if attrs.has_key('description'):
self.object.desc = attrs['description']
else:
self.object.desc = ""
drive,src = os.path.splitdrive(attrs["src"])
if src:
if not drive and not os.path.isabs(src):