* 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
74730bbff7
commit
82e6acd258
@ -4,6 +4,9 @@
|
|||||||
(on_show_plugin_status,build_plugin_menus): Pass itself to PluginStatus.
|
(on_show_plugin_status,build_plugin_menus): Pass itself to PluginStatus.
|
||||||
* src/Plugins.py (PluginStatus.__init__): Set transent property.
|
* 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>
|
2005-01-25 Eero Tamminen <eerot@sf>
|
||||||
* src/plugins/StatisticsChart.py:
|
* src/plugins/StatisticsChart.py:
|
||||||
- Comment out debug output
|
- Comment out debug output
|
||||||
|
@ -1150,7 +1150,7 @@ class GedcomParser:
|
|||||||
photo = RelLib.MediaObject()
|
photo = RelLib.MediaObject()
|
||||||
photo.set_path(path)
|
photo.set_path(path)
|
||||||
photo.set_description(title)
|
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.db.add_object(photo, self.trans)
|
||||||
self.media_map[path] = photo.get_handle()
|
self.media_map[path] = photo.get_handle()
|
||||||
else:
|
else:
|
||||||
@ -1192,7 +1192,7 @@ class GedcomParser:
|
|||||||
photo = RelLib.MediaObject()
|
photo = RelLib.MediaObject()
|
||||||
photo.set_path(path)
|
photo.set_path(path)
|
||||||
photo.set_description(title)
|
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.db.add_object(photo, self.trans)
|
||||||
oref = RelLib.MediaRef()
|
oref = RelLib.MediaRef()
|
||||||
oref.set_reference_handle(photo.get_handle())
|
oref.set_reference_handle(photo.get_handle())
|
||||||
|
Loading…
Reference in New Issue
Block a user