4646: reports cannot be run from the command line in a non-GUI environment -- partial fix
svn: r18556
This commit is contained in:
@@ -48,8 +48,11 @@ def reload_custom_filters():
|
|||||||
if not CustomFilters:
|
if not CustomFilters:
|
||||||
reload_custom_filters()
|
reload_custom_filters()
|
||||||
|
|
||||||
from _FilterComboBox import FilterComboBox
|
try: # the Gramps-Connect server has no DISPLAY
|
||||||
from _FilterMenu import build_filter_model
|
from _FilterComboBox import FilterComboBox
|
||||||
from _FilterStore import FilterStore
|
from _FilterMenu import build_filter_model
|
||||||
from _SearchBar import SearchBar
|
from _FilterStore import FilterStore
|
||||||
|
from _SearchBar import SearchBar
|
||||||
|
except:
|
||||||
|
pass
|
||||||
from _SearchFilter import SearchFilter, ExactSearchFilter
|
from _SearchFilter import SearchFilter, ExactSearchFilter
|
||||||
|
@@ -60,11 +60,13 @@ log = logging.getLogger(".GtkPrint")
|
|||||||
# GTK modules
|
# GTK modules
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import gtk
|
|
||||||
import cairo
|
import cairo
|
||||||
|
try: # the Gramps-Connect server has no DISPLAY
|
||||||
if gtk.pygtk_version < (2, 10, 0):
|
import gtk
|
||||||
raise Errors.UnavailableError(_("PyGtk 2.10 or later is required"))
|
if gtk.pygtk_version < (2, 10, 0):
|
||||||
|
raise Errors.UnavailableError(_("PyGtk 2.10 or later is required"))
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
|
Reference in New Issue
Block a user