From 0695f265e6ec610d3ace24c3b9f6aa666eb8fd47 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Thu, 11 Oct 2001 23:45:06 +0000 Subject: [PATCH] no message svn: r460 --- gramps/src/plugins/ReadGedcom.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gramps/src/plugins/ReadGedcom.py b/gramps/src/plugins/ReadGedcom.py index 695697e13..3e29325eb 100644 --- a/gramps/src/plugins/ReadGedcom.py +++ b/gramps/src/plugins/ReadGedcom.py @@ -83,14 +83,14 @@ placemap = {} #------------------------------------------------------------------------- def find_file(fullname,altpath): if os.path.isfile(fullname): - type = gnome.mime.type(fullname) + type = utils.get_mime_type(fullname) if type[0:6] != "image/": return "" else: return fullname other = altpath + os.sep + os.path.basename(fullname) if os.path.isfile(other): - type = gnome.mime.type(other) + type = utils.get_mime_type(other) if type[0:6] != "image/": return "" else: @@ -783,7 +783,7 @@ class GedcomParser: photo = Photo() photo.setPath(path) photo.setDescription(title) - photo.setMimeType(gnome.mime.type_or_default_of_file(name,"unknown")) + photo.setMimeType(utils.get_mime_type(path)) db.addObject(photo) oref = ObjectRef() oref.setReference(photo)