* src/WriteGedcom.py: Add description and notes for media objects

svn: r5327
This commit is contained in:
Julio Sánchez
2005-10-17 22:57:58 +00:00
parent c44700e541
commit 677886956a
2 changed files with 6 additions and 0 deletions

View File

@@ -1,3 +1,6 @@
2005-10-18 Julio Sanchez <jsanchez@users.sourceforge.net>
* src/WriteGedcom.py: Add description and notes for media objects
2005-10-17 Stefan Bjork <skalman@acc.umu.se>
* src/po/template.po: Broken and recreated.

View File

@@ -994,10 +994,13 @@ class GedcomWriter:
self.writeln('1 OBJE')
self.writeln('2 FORM jpeg')
self.writeln('2 TITL %s' % photo_obj.get_description())
dirname = os.path.join (self.dirname, self.images_path)
basename = os.path.basename (path)
self.writeln('2 FILE %s' % os.path.join(self.images_path,
basename))
if photo_obj.get_note():
self.write_long_text("NOTE",2,self.cnvtxt(photo_obj.get_note()))
for family in person.get_parent_family_handle_list():