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

@@ -31,7 +31,7 @@ import Errors
from TarFile import TarFile
import PluginMgr
import ImgManip
import GrampsMime
import Mime
from gettext import gettext as _
@@ -263,7 +263,7 @@ class KwordDoc(BaseDoc.BaseDoc):
if self.print_req:
apptype = 'application/x-kword'
app = GrampsMime.get_application(apptype)
app = Mime.get_application(apptype)
os.environ["FILE"] = self.filename
os.system ('%s "$FILE" &' % app[0])
@@ -488,8 +488,8 @@ class KwordDoc(BaseDoc.BaseDoc):
try:
import Utils
prog = GrampsMime.get_application("application/x-kword")
mtype = GrampsMime.get_description("application/x-kword")
prog = Mime.get_application("application/x-kword")
mtype = Mime.get_description("application/x-kword")
if prog and Utils.search_for(prog[0]):
print_label=_("Open in %s") % prog[1]