0001011: XML import loses media objects when media object has no title.
svn: r8379
This commit is contained in:
parent
28dc889abb
commit
4cb1aaacd1
@ -1,3 +1,7 @@
|
|||||||
|
2007-04-12 Brian Matherly <brian@gramps-project.org>
|
||||||
|
* src/GrampsDb/_ReadXML.py: 0001011: XML import loses media objects when
|
||||||
|
media object has no title
|
||||||
|
|
||||||
2007-04-11 Don Allingham <don@gramps-project.org>
|
2007-04-11 Don Allingham <don@gramps-project.org>
|
||||||
* src/GrampsDb/_WriteGedcom.py (GedcomWriter.write_source_ref): replace
|
* src/GrampsDb/_WriteGedcom.py (GedcomWriter.write_source_ref): replace
|
||||||
newlines with semicolons on output.
|
newlines with semicolons on output.
|
||||||
|
@ -1005,7 +1005,10 @@ class GrampsParser(UpdateCallback):
|
|||||||
|
|
||||||
def start_file(self,attrs):
|
def start_file(self,attrs):
|
||||||
self.object.mime = attrs['mime']
|
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"])
|
drive,src = os.path.splitdrive(attrs["src"])
|
||||||
if src:
|
if src:
|
||||||
if not drive and not os.path.isabs(src):
|
if not drive and not os.path.isabs(src):
|
||||||
|
Loading…
Reference in New Issue
Block a user