* GrampsMime.py: added mime types

* grampslib_wrap.c: removed
* various: more undo functionality


svn: r3074
This commit is contained in:
Don Allingham
2004-04-04 04:39:52 +00:00
parent f58731f4ea
commit efd152ac78
49 changed files with 2133 additions and 3632 deletions

View File

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