* src/ReadGedcom.py (parse_person_object,parse_family_object):

Use absolute path to work around what seems a gnomevfs issue.


svn: r3965
This commit is contained in:
Alex Roitman 2005-01-25 23:08:37 +00:00
parent 74730bbff7
commit 82e6acd258
2 changed files with 5 additions and 2 deletions

View File

@ -4,6 +4,9 @@
(on_show_plugin_status,build_plugin_menus): Pass itself to PluginStatus.
* src/Plugins.py (PluginStatus.__init__): Set transent property.
* src/ReadGedcom.py (parse_person_object,parse_family_object):
Use absolute path to work around what seems a gnomevfs issue.
2005-01-25 Eero Tamminen <eerot@sf>
* src/plugins/StatisticsChart.py:
- Comment out debug output

View File

@ -1150,7 +1150,7 @@ class GedcomParser:
photo = RelLib.MediaObject()
photo.set_path(path)
photo.set_description(title)
photo.set_mime_type(Utils.get_mime_type(path))
photo.set_mime_type(Utils.get_mime_type(os.path.abspath(path)))
self.db.add_object(photo, self.trans)
self.media_map[path] = photo.get_handle()
else:
@ -1192,7 +1192,7 @@ class GedcomParser:
photo = RelLib.MediaObject()
photo.set_path(path)
photo.set_description(title)
photo.set_mime_type(Utils.get_mime_type(path))
photo.set_mime_type(Utils.get_mime_type(os.path.abspath(path)))
self.db.add_object(photo, self.trans)
oref = RelLib.MediaRef()
oref.set_reference_handle(photo.get_handle())