no message

svn: r460
This commit is contained in:
Don Allingham 2001-10-11 23:45:06 +00:00
parent e4d82797d2
commit 0695f265e6

View File

@ -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)