* GrampsMime.py: added mime types
* grampslib_wrap.c: removed * various: more undo functionality svn: r3074
This commit is contained in:
@@ -42,6 +42,8 @@ from QuestionDialog import ErrorDialog, WarningDialog
|
||||
import const
|
||||
import Utils
|
||||
import ImgManip
|
||||
import GrampsMime
|
||||
|
||||
from gettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
@@ -59,7 +61,7 @@ def import_media_object(filename,path,base):
|
||||
|
||||
ext = os.path.splitext(filename)[1]
|
||||
|
||||
type = Utils.get_mime_type(filename)
|
||||
type = GrampsMime.get_type(filename)
|
||||
if type[0:5] == "image":
|
||||
name = "%s/%s%s" % (os.path.dirname(path),base,ext)
|
||||
thumb = "%s/.thumb" % (os.path.dirname(path))
|
||||
|
||||
Reference in New Issue
Block a user