Add Mime package

svn: r6047
This commit is contained in:
Alex Roitman
2006-03-03 00:23:04 +00:00
parent 4a04791292
commit a3de395e16
26 changed files with 73 additions and 70 deletions

View File

@ -62,7 +62,7 @@ import RecentFiles
import NameDisplay
import Tool
import Report
import GrampsMime
import Mime
import Config
import GrampsWidgets
@ -570,7 +570,7 @@ class ViewManager:
return False
filetype = type_selector.get_value()
if filetype == 'auto':
filetype = GrampsMime.get_type(filename)
filetype = Mime.get_type(filename)
(the_path,the_file) = os.path.split(filename)
choose.destroy()
if filetype in [const.app_gramps,const.app_gramps_xml,
@ -916,7 +916,7 @@ class ViewManager:
filetype = type_selector.get_value()
if filetype == 'auto':
try:
filetype = GrampsMime.get_type(filename)
filetype = Mime.get_type(filename)
except RuntimeError,msg:
QuestionDialog.ErrorDialog(
_("Could not open file: %s") % filename,