Remove the "print_label" construct from the reports. The only label is "Open with default viewer". No need to check the mime type or to look for the default application because Gramps uses the host OS to figure it out for the user.

svn: r12351
This commit is contained in:
Brian Matherly
2009-03-16 04:22:12 +00:00
parent be898d84a9
commit 0214b842cd
16 changed files with 62 additions and 114 deletions

View File

@ -44,10 +44,8 @@ import const
import Errors
import BaseDoc
from QuestionDialog import ErrorDialog, WarningDialog
import Mime
import Utils
#------------------------------------------------------------------------
#
# Constant regular expressions
@ -477,7 +475,5 @@ class HtmlDoc(BaseDoc.BaseDoc,BaseDoc.TextDoc):
# Register the document generator with the GRAMPS plugin system
#
#------------------------------------------------------------------------
print_label = None
pmgr = PluginManager.get_instance()
pmgr.register_text_doc(_('HTML'), HtmlDoc, 0, 1, ".html",
_("Open with default viewer"))
pmgr.register_text_doc(_('HTML'), HtmlDoc, 0, 1, ".html")