Fixed Utils.open_file_with_default_application() to gui.utils instead of Utils now. Works again.
svn: r12699
This commit is contained in:
@@ -34,6 +34,7 @@ from gettext import gettext as _
|
||||
# Gramps modules
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
from gui.utils import open_file_with_default_application
|
||||
from gen.plug.docgen import BaseDoc, TextDoc,\
|
||||
PARA_ALIGN_RIGHT, PARA_ALIGN_CENTER
|
||||
from gen.plug import PluginManager, DocGenPlugin
|
||||
@@ -154,7 +155,7 @@ class AsciiDoc(BaseDoc,TextDoc):
|
||||
self.f.close()
|
||||
|
||||
if self.open_req:
|
||||
Utils.open_file_with_default_application(self.filename)
|
||||
open_file_with_default_application(self.filename)
|
||||
|
||||
def get_usable_width(self):
|
||||
return _WIDTH_IN_CHARS
|
||||
|
||||
@@ -42,6 +42,7 @@ from gettext import gettext as _
|
||||
# GRAMPS modules
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
from gui.utils import open_file_with_default_application
|
||||
from gen.plug import PluginManager, DocGenPlugin
|
||||
import ImgManip
|
||||
import const
|
||||
@@ -240,7 +241,7 @@ class HtmlDoc(BaseDoc, TextDoc):
|
||||
|
||||
if self.open_req:
|
||||
import Utils
|
||||
Utils.open_file_with_default_application(self._backend.getf())
|
||||
open_file_with_default_application(self._backend.getf())
|
||||
|
||||
def copy_file(self, from_fname, to_fname, to_dir=''):
|
||||
"""
|
||||
|
||||
@@ -39,7 +39,7 @@ from gettext import gettext as _
|
||||
# gramps modules
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
|
||||
from gui.utils import open_file_with_default_application
|
||||
from gen.plug import PluginManager, DocGenPlugin
|
||||
from gen.plug.docgen import BaseDoc, TextDoc, PAPER_LANDSCAPE, FONT_SANS_SERIF
|
||||
from gen.plug.docbackend import DocBackend
|
||||
@@ -417,7 +417,7 @@ class LaTeXDoc(BaseDoc, TextDoc):
|
||||
self._backend.write('\n\\end{document}\n')
|
||||
self._backend.close()
|
||||
if self.open_req:
|
||||
Utils.open_file_with_default_application(self._backend.filename)
|
||||
open_file_with_default_application(self._backend.filename)
|
||||
|
||||
def end_page(self):
|
||||
"""Issue a new page command"""
|
||||
|
||||
@@ -44,6 +44,7 @@ from xml.sax.saxutils import escape
|
||||
# Gramps modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from gui.utils import open_file_with_default_application
|
||||
from gen.plug import PluginManager, DocGenPlugin
|
||||
from gen.plug.docgen import (BaseDoc, TextDoc, DrawDoc,
|
||||
FONT_SANS_SERIF, DASHED, PAPER_PORTRAIT,
|
||||
@@ -435,7 +436,7 @@ class ODFDoc(BaseDoc, TextDoc, DrawDoc):
|
||||
self._write_mimetype_file()
|
||||
self._write_zip()
|
||||
if self.open_req:
|
||||
Utils.open_file_with_default_application(self.filename)
|
||||
open_file_with_default_application(self.filename)
|
||||
|
||||
def add_media_object(self, file_name, pos, x_cm, y_cm, alt=''):
|
||||
|
||||
|
||||
@@ -31,6 +31,7 @@ from gettext import gettext as _
|
||||
#-------------------------------------------------------------------------
|
||||
#Gramps modules
|
||||
#-------------------------------------------------------------------------
|
||||
from gui.utils import open_file_with_default_application
|
||||
from ReportBase import ReportUtils
|
||||
from gen.plug import PluginManager, DocGenPlugin
|
||||
from gen.plug.docgen import BaseDoc, DrawDoc, FONT_SERIF, PAPER_PORTRAIT, SOLID
|
||||
@@ -135,7 +136,7 @@ class PSDrawDoc(BaseDoc,DrawDoc):
|
||||
self.f.write('%%EOF\n')
|
||||
self.f.close()
|
||||
if self.open_req:
|
||||
Utils.open_file_with_default_application(self.filename)
|
||||
open_file_with_default_application(self.filename)
|
||||
|
||||
def write_text(self,text,mark=None):
|
||||
pass
|
||||
|
||||
@@ -36,6 +36,7 @@ from gettext import gettext as _
|
||||
# Gramps modules
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
from gui.utils import open_file_with_default_application
|
||||
import libcairodoc
|
||||
from gen.plug import PluginManager, DocGenPlugin
|
||||
import Utils
|
||||
@@ -125,7 +126,7 @@ class PdfDoc(libcairodoc.CairoDoc):
|
||||
|
||||
# load the result into an external viewer
|
||||
if self.open_req:
|
||||
Utils.open_file_with_default_application(self._backend.filename)
|
||||
open_file_with_default_application(self._backend.filename)
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
|
||||
@@ -34,6 +34,7 @@ from gettext import gettext as _
|
||||
# Load the base BaseDoc class
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
from gui.utils import open_file_with_default_application
|
||||
from gen.plug.docgen import (BaseDoc, TextDoc, FONT_SERIF, PARA_ALIGN_RIGHT,
|
||||
PARA_ALIGN_CENTER, PARA_ALIGN_JUSTIFY)
|
||||
from gen.plug import PluginManager, DocGenPlugin
|
||||
@@ -129,7 +130,7 @@ class RTFDoc(BaseDoc,TextDoc):
|
||||
self.f.close()
|
||||
|
||||
if self.open_req:
|
||||
Utils.open_file_with_default_application(self.filename)
|
||||
open_file_with_default_application(self.filename)
|
||||
|
||||
#--------------------------------------------------------------------
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user