* 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:
parent
91e111b8fc
commit
f875a3f8a8
@ -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
|
||||
|
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user