0001011: XML import loses media objects when media object has no title.
svn: r8380
This commit is contained in:
parent
79fd3aaf39
commit
5ce7b7c539
@ -1,3 +1,7 @@
|
||||
2007-04-12 Brian Matherly <brian@gramps-project.org>
|
||||
* src/GrampsDbUtils/_ReadXML.py: 0001011: XML import loses media objects
|
||||
when media object has no title.
|
||||
|
||||
2007-04-09 Brian Matherly <brian@gramps-project.org>
|
||||
* src/Config/_GrampsIniKeys.py: Remove file check - it is not needed.
|
||||
|
||||
|
@ -1035,7 +1035,10 @@ class GrampsParser(UpdateCallback):
|
||||
|
||||
def start_file(self,attrs):
|
||||
self.object.mime = attrs['mime']
|
||||
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):
|
||||
|
Loading…
Reference in New Issue
Block a user