GEPS008: Moved config module
svn: r19809
This commit is contained in:
parent
03608064ef
commit
aabc6c05c2
@ -13,7 +13,6 @@ SUBDIRS = \
|
||||
gdirdir=$(prefix)/share/gramps
|
||||
|
||||
gdir_PYTHON = \
|
||||
config.py\
|
||||
const.py\
|
||||
constfunc.py\
|
||||
gramps.py\
|
||||
|
@ -63,7 +63,7 @@ from gen.ggettext import sgettext as _
|
||||
#-------------------------------------------------------------------------
|
||||
# cache values; use refresh_constants() if they change
|
||||
try:
|
||||
import config
|
||||
from gen.config import config
|
||||
_MAX_AGE_PROB_ALIVE = config.get('behavior.max-age-prob-alive')
|
||||
_MAX_SIB_AGE_DIFF = config.get('behavior.max-sib-age-diff')
|
||||
_AVG_GENERATION_GAP = config.get('behavior.avg-generation-gap')
|
||||
@ -1357,7 +1357,7 @@ def update_constants():
|
||||
"""
|
||||
Used to update the constants that are cached in this module.
|
||||
"""
|
||||
import config
|
||||
from gen.config import config
|
||||
global _MAX_AGE_PROB_ALIVE, _MAX_SIB_AGE_DIFF, _AVG_GENERATION_GAP
|
||||
_MAX_AGE_PROB_ALIVE = config.get('behavior.max-age-prob-alive')
|
||||
_MAX_SIB_AGE_DIFF = config.get('behavior.max-sib-age-diff')
|
||||
|
@ -47,7 +47,7 @@ import logging
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import const
|
||||
import config
|
||||
from gen.config import config
|
||||
from gen.utils.configmanager import safe_eval
|
||||
import Utils
|
||||
|
||||
|
@ -54,7 +54,7 @@ LOG = logging.getLogger(".clidbman")
|
||||
#-------------------------------------------------------------------------
|
||||
import gen.db
|
||||
from gen.plug import BasePluginManager
|
||||
import config
|
||||
from gen.config import config
|
||||
import constfunc
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -46,7 +46,7 @@ LOG = logging.getLogger(".grampscli")
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from gen.display.name import displayer as name_displayer
|
||||
import config
|
||||
from gen.config import config
|
||||
import const
|
||||
from gen.errors import DbError
|
||||
from gen.dbstate import DbState
|
||||
|
@ -22,6 +22,7 @@ pkgpythondir = $(datadir)/@PACKAGE@/gen
|
||||
|
||||
pkgpython_PYTHON = \
|
||||
__init__.py \
|
||||
config.py \
|
||||
dbstate.py \
|
||||
errors.py \
|
||||
ggettext.py \
|
||||
|
@ -62,7 +62,7 @@ except:
|
||||
|
||||
# Initialize global displayer
|
||||
try:
|
||||
import config
|
||||
from gen.config import config
|
||||
val = config.get('preferences.date-format')
|
||||
except:
|
||||
val = 0
|
||||
|
@ -188,7 +188,7 @@ class BSDDBTxn(object):
|
||||
# test code
|
||||
if __name__ == "__main__":
|
||||
print "1"
|
||||
import config
|
||||
from gen.config import config
|
||||
if config.get('preferences.use-bsddb3'):
|
||||
from bsddb3 import db, dbshelve
|
||||
else:
|
||||
|
@ -28,7 +28,7 @@
|
||||
#-------------------------------------------------------------------------
|
||||
from cPickle import dumps, loads
|
||||
|
||||
import config
|
||||
from gen.config import config
|
||||
if config.get('preferences.use-bsddb3'):
|
||||
from bsddb3 import db
|
||||
else:
|
||||
|
@ -66,7 +66,7 @@ DBLOCKS = 100000 # Maximum number of locks supported
|
||||
DBOBJECTS = 100000 # Maximum number of simultaneously locked objects
|
||||
DBUNDO = 1000 # Maximum size of undo buffer
|
||||
|
||||
import config
|
||||
from gen.config import config
|
||||
if config.get('preferences.use-bsddb3'):
|
||||
from bsddb3.db import DB_CREATE, DB_AUTO_COMMIT, DB_DUP, DB_DUPSORT, DB_RDONLY
|
||||
else:
|
||||
|
@ -38,7 +38,7 @@ import locale
|
||||
import os
|
||||
from sys import maxint
|
||||
|
||||
import config
|
||||
from gen.config import config
|
||||
if config.get('preferences.use-bsddb3'):
|
||||
from bsddb3 import db
|
||||
else:
|
||||
|
@ -36,7 +36,7 @@ import time, os
|
||||
import cPickle as pickle
|
||||
from collections import deque
|
||||
|
||||
import config
|
||||
from gen.config import config
|
||||
if config.get('preferences.use-bsddb3'):
|
||||
from bsddb3 import db
|
||||
else:
|
||||
|
@ -34,7 +34,7 @@ from gen.ggettext import gettext as _
|
||||
"""
|
||||
methods to upgrade a database from version 13 to current version
|
||||
"""
|
||||
import config
|
||||
from gen.config import config
|
||||
if config.get('preferences.use-bsddb3'):
|
||||
from bsddb3 import db
|
||||
else:
|
||||
|
@ -43,7 +43,7 @@ import logging
|
||||
from sys import maxint
|
||||
|
||||
from gen.ggettext import gettext as _
|
||||
import config
|
||||
from gen.config import config
|
||||
if config.get('preferences.use-bsddb3'):
|
||||
from bsddb3 import dbshelve, db
|
||||
else:
|
||||
|
@ -28,7 +28,7 @@ Provide the database state class
|
||||
from gen.db import DbBsddbRead
|
||||
from gen.proxy.proxybase import ProxyDbBase
|
||||
from gen.utils import Callback
|
||||
import config
|
||||
from gen.config import config
|
||||
|
||||
class DbState(Callback):
|
||||
"""
|
||||
|
@ -64,7 +64,7 @@ import re
|
||||
from gen.lib import Name, NameOriginType
|
||||
|
||||
try:
|
||||
import config
|
||||
from gen.config import config
|
||||
WITH_GRAMPS_CONFIG=True
|
||||
except ImportError:
|
||||
WITH_GRAMPS_CONFIG=False
|
||||
|
@ -57,7 +57,7 @@ from gen.lib.calendar import (gregorian_sdn, julian_sdn, hebrew_sdn,
|
||||
gregorian_ymd, julian_ymd, hebrew_ymd,
|
||||
french_ymd, persian_ymd, islamic_ymd,
|
||||
swedish_ymd)
|
||||
import config
|
||||
from gen.config import config
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -35,7 +35,7 @@ from gen.ggettext import gettext as _
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from gen.lib.grampstype import GrampsType
|
||||
import config
|
||||
from gen.config import config
|
||||
|
||||
class FamilyRelType(GrampsType):
|
||||
|
||||
|
@ -45,7 +45,7 @@ except ValueError:
|
||||
from test import test_util
|
||||
test_util.path_append_parent()
|
||||
|
||||
import config
|
||||
from gen.config import config
|
||||
import gen.datehandler
|
||||
from gen.datehandler import parser as _dp
|
||||
from gen.datehandler import displayer as _dd
|
||||
|
@ -21,7 +21,7 @@
|
||||
|
||||
# $Id$
|
||||
|
||||
import config
|
||||
from gen.config import config
|
||||
if config.get('preferences.use-bsddb3'):
|
||||
import bsddb3 as bsddb
|
||||
else:
|
||||
|
@ -45,7 +45,7 @@ from gen.ggettext import gettext as _
|
||||
# GRAMPS modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import config
|
||||
from gen.config import config
|
||||
import gen.utils
|
||||
from gen.plug import PluginRegister
|
||||
|
||||
|
@ -58,7 +58,7 @@ except:
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import const
|
||||
import config
|
||||
from gen.config import config
|
||||
from gen.plug.docgen import PAPER_PORTRAIT
|
||||
from gen.plug import _options
|
||||
from gen.plug import MenuOptions
|
||||
|
@ -39,7 +39,7 @@ from itertools import ifilter
|
||||
from proxybase import ProxyDbBase
|
||||
from gen.lib import Date, Person, Name, Surname
|
||||
from Utils import probably_alive
|
||||
import config
|
||||
from gen.config import config
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -401,7 +401,7 @@ class RelationshipCalculator(object):
|
||||
self.__db_connected = False
|
||||
self.depth = 15
|
||||
try:
|
||||
import config
|
||||
from gen.config import config
|
||||
self.set_depth(config.get('behavior.generation-depth'))
|
||||
except ImportError:
|
||||
pass
|
||||
|
@ -36,7 +36,7 @@ from gen.plug.report.utils import place_name
|
||||
|
||||
from gen.display.name import displayer as name_displayer
|
||||
from gen.lib import EventType
|
||||
import config
|
||||
from gen.config import config
|
||||
from gen.ggettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
|
@ -29,7 +29,7 @@ Provide a simplified table creation interface
|
||||
import cgi
|
||||
from gen.ggettext import sgettext as _
|
||||
import gen.lib
|
||||
import config
|
||||
from gen.config import config
|
||||
import gen.datehandler
|
||||
|
||||
class SimpleTable(object):
|
||||
|
@ -251,7 +251,7 @@ def show_settings():
|
||||
except ImportError:
|
||||
pyexiv2_str = 'not found'
|
||||
|
||||
import config
|
||||
from gen.config import config
|
||||
usebsddb3 = config.get('preferences.use-bsddb3')
|
||||
try:
|
||||
if usebsddb3:
|
||||
|
@ -53,7 +53,7 @@ import gtk
|
||||
#-------------------------------------------------------------------------
|
||||
import const
|
||||
from gui.display import display_url
|
||||
import config
|
||||
from gen.config import config
|
||||
|
||||
if config.get('preferences.use-bsddb3'):
|
||||
import bsddb3 as bsddb
|
||||
|
@ -45,7 +45,7 @@ from gtk.gdk import ACTION_COPY, BUTTON1_MASK, ACTION_MOVE
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import const
|
||||
import config
|
||||
from gen.config import config
|
||||
import gen.lib
|
||||
import gen.datehandler
|
||||
from gui.display import display_help
|
||||
|
@ -46,7 +46,7 @@ import gobject
|
||||
# gramps modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import config
|
||||
from gen.config import config
|
||||
import const
|
||||
import gen.datehandler
|
||||
from gen.display.name import displayer as _nd
|
||||
|
@ -55,7 +55,7 @@ import gobject
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from cli.grampscli import CLIDbLoader
|
||||
import config
|
||||
from gen.config import config
|
||||
import gen.db
|
||||
import Utils
|
||||
from gui.pluginmanager import GuiPluginManager
|
||||
|
@ -41,7 +41,7 @@ from gtk.gdk import pixbuf_new_from_file
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import const
|
||||
import config
|
||||
from gen.config import config
|
||||
from gui.glade import Glade
|
||||
from gen.ggettext import gettext as _
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
import const
|
||||
import constfunc
|
||||
import config
|
||||
from gen.config import config
|
||||
import locale
|
||||
import os
|
||||
|
||||
|
@ -56,7 +56,7 @@ import gobject
|
||||
import gen.utils
|
||||
from gui.utils import process_pending_events
|
||||
from gui.views.navigationview import NavigationView
|
||||
import config
|
||||
from gen.config import config
|
||||
from gen.display.name import displayer as name_displayer
|
||||
from gui.managedwindow import GrampsWindowManager
|
||||
from gen.relationship import get_relationship_calculator
|
||||
|
@ -51,7 +51,7 @@ import gtk
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import const
|
||||
import config
|
||||
from gen.config import config
|
||||
import Utils
|
||||
import gen.mime
|
||||
from gui.thumbnails import find_mime_type_pixbuf
|
||||
|
@ -43,7 +43,7 @@ import cgi
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import gen.datehandler
|
||||
import config
|
||||
from gen.config import config
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -28,7 +28,7 @@
|
||||
# python modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import config
|
||||
from gen.config import config
|
||||
if config.get('preferences.use-bsddb3'):
|
||||
from bsddb3 import db as bsddb_db
|
||||
else:
|
||||
@ -61,7 +61,7 @@ import gobject
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import Utils
|
||||
import config
|
||||
from gen.config import config
|
||||
from gen.display.name import displayer as name_displayer
|
||||
from gen.utils import get_marriage_or_fallback
|
||||
import gen.lib
|
||||
|
@ -45,7 +45,7 @@ import gtk
|
||||
# gramps modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import config
|
||||
from gen.config import config
|
||||
from gen.display.name import displayer as name_displayer
|
||||
from editsecondary import EditSecondary
|
||||
from gen.lib import NoteType
|
||||
|
@ -47,7 +47,7 @@ import pango
|
||||
# GRAMPS modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import config
|
||||
from gen.config import config
|
||||
import const
|
||||
from editprimary import EditPrimary
|
||||
from displaytabs import GrampsTab, NoteBackRefList
|
||||
|
@ -63,7 +63,7 @@ from gui.glade import Glade
|
||||
from editprimary import EditPrimary
|
||||
from editmediaref import EditMediaRef
|
||||
from editname import EditName
|
||||
import config
|
||||
from gen.config import config
|
||||
from gui.dialog import ErrorDialog, ICON
|
||||
from gen.errors import ValidationError
|
||||
|
||||
|
@ -43,7 +43,7 @@ import gtk
|
||||
from gui.managedwindow import ManagedWindow
|
||||
import gen.datehandler
|
||||
from gen.display.name import displayer as name_displayer
|
||||
import config
|
||||
from gen.config import config
|
||||
import gui.utils
|
||||
from gui.display import display_help
|
||||
from gui.dialog import SaveDialog
|
||||
|
@ -35,7 +35,7 @@ import gtk
|
||||
#-------------------------------------------------------------------------
|
||||
from gui.managedwindow import ManagedWindow
|
||||
from displaytabs import GrampsTab
|
||||
import config
|
||||
from gen.config import config
|
||||
from gui.dbguielement import DbGUIElement
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
|
@ -23,7 +23,7 @@
|
||||
|
||||
from gui.managedwindow import ManagedWindow
|
||||
from gui.display import display_help
|
||||
import config
|
||||
from gen.config import config
|
||||
from gui.dbguielement import DbGUIElement
|
||||
|
||||
class EditSecondary(ManagedWindow, DbGUIElement):
|
||||
|
@ -28,7 +28,7 @@ import pango
|
||||
|
||||
from gui import widgets
|
||||
from gui.dbguielement import DbGUIElement
|
||||
import config
|
||||
from gen.config import config
|
||||
|
||||
_RETURN = gtk.gdk.keyval_from_name("Return")
|
||||
_KP_ENTER = gtk.gdk.keyval_from_name("KP_Enter")
|
||||
|
@ -56,7 +56,7 @@ import gobject
|
||||
# GRAMPS Modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import config
|
||||
from gen.config import config
|
||||
import const
|
||||
import constfunc
|
||||
import Utils
|
||||
|
@ -32,7 +32,7 @@ import gobject
|
||||
import cairo
|
||||
import sys, os
|
||||
|
||||
import config
|
||||
from gen.config import config
|
||||
if config.get('preferences.use-bsddb3'):
|
||||
import bsddb3 as bsddb
|
||||
else:
|
||||
|
@ -48,7 +48,7 @@ import gtk
|
||||
#-------------------------------------------------------------------------
|
||||
import const
|
||||
from gen.errors import WindowActiveError
|
||||
import config
|
||||
from gen.config import config
|
||||
from gui.glade import Glade
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
|
@ -58,7 +58,7 @@ from gui.dialog import InfoDialog
|
||||
from gui.editors import EditPerson
|
||||
import Utils
|
||||
import const
|
||||
import config
|
||||
from gen.config import config
|
||||
|
||||
def display_message(message):
|
||||
"""
|
||||
|
@ -56,7 +56,7 @@ import gtk
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
import const
|
||||
import config
|
||||
from gen.config import config
|
||||
from gui.pluginmanager import GuiPluginManager
|
||||
import Utils
|
||||
from gui.managedwindow import ManagedWindow
|
||||
|
@ -37,7 +37,7 @@
|
||||
#-------------------------------------------------------------------------
|
||||
from gen.ggettext import gettext as _
|
||||
from gen.ggettext import ngettext
|
||||
import config
|
||||
from gen.config import config
|
||||
from gen.display.name import displayer as name_displayer
|
||||
from gen.filters import GenericFilter, rules
|
||||
from gui.utils import ProgressMeter
|
||||
|
@ -42,7 +42,7 @@ import gtk
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import const
|
||||
import config
|
||||
from gen.config import config
|
||||
from _reportdialog import ReportDialog
|
||||
from _papermenu import PaperFrame
|
||||
from gui.pluginmanager import GuiPluginManager
|
||||
|
@ -45,7 +45,7 @@ import gobject
|
||||
# GRAMPS modules
|
||||
#
|
||||
#-------------------------------------------------------------------------------
|
||||
import config
|
||||
from gen.config import config
|
||||
from gen.plug.report import CATEGORY_GRAPHVIZ
|
||||
from _reportdialog import ReportDialog
|
||||
from _papermenu import PaperFrame
|
||||
|
@ -49,7 +49,7 @@ import gtk
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from gen.ggettext import gettext as _
|
||||
import config
|
||||
from gen.config import config
|
||||
from gen.errors import DatabaseError, FilterError, ReportError, WindowActiveError
|
||||
from gui.utils import open_file_with_default_application
|
||||
from gui.plug import add_gui_options
|
||||
|
@ -45,7 +45,7 @@ import gtk
|
||||
import gen.utils
|
||||
from gen.plug import BasePluginManager, PluginRegister
|
||||
from constfunc import win
|
||||
import config
|
||||
from gen.config import config
|
||||
import const
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
|
@ -64,7 +64,7 @@ if not HAVE_GTKSPELL:
|
||||
# GRAMPS classes
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import config
|
||||
from gen.config import config
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -46,7 +46,7 @@ import os
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import const
|
||||
import config
|
||||
from gen.config import config
|
||||
from gui.managedwindow import ManagedWindow
|
||||
from gui.dialog import ErrorDialog
|
||||
from gui.glade import Glade
|
||||
|
@ -80,7 +80,7 @@ from gen.relationship import get_relationship_calculator
|
||||
from gui.displaystate import DisplayState, RecentDocsMenu
|
||||
import const
|
||||
import constfunc
|
||||
import config
|
||||
from gen.config import config
|
||||
from gen.errors import WindowActiveError
|
||||
from gui.dialog import (ErrorDialog, WarningDialog, QuestionDialog2,
|
||||
InfoDialog)
|
||||
|
@ -53,7 +53,7 @@ import pango
|
||||
from gui.views.pageview import PageView
|
||||
from gui.views.navigationview import NavigationView
|
||||
from gui.columnorder import ColumnOrder
|
||||
import config
|
||||
from gen.config import config
|
||||
from gen.errors import WindowActiveError
|
||||
from gui.filters import SearchBar
|
||||
from gui.utils import add_menuitem
|
||||
|
@ -51,7 +51,7 @@ from gui.dbguielement import DbGUIElement
|
||||
from gui.widgets.menutoolbuttonaction import MenuToolButtonAction
|
||||
from gui.grampsbar import GrampsBar
|
||||
from gui.configure import ConfigureDialog
|
||||
from config import config
|
||||
from gen.config import config
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -42,7 +42,7 @@ LOG = logging.getLogger(".citation")
|
||||
import gen.datehandler
|
||||
import gen.lib
|
||||
from Utils import confidence, format_time
|
||||
import config
|
||||
from gen.config import config
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -43,7 +43,7 @@ import gtk
|
||||
import gen.datehandler
|
||||
import gen.lib
|
||||
import Utils
|
||||
import config
|
||||
from gen.config import config
|
||||
from gui.views.treemodels.flatbasemodel import FlatBaseModel
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
|
@ -47,7 +47,7 @@ from gen.display.name import displayer as name_displayer
|
||||
import gen.lib
|
||||
from gen.lib import EventRoleType
|
||||
from gui.views.treemodels.flatbasemodel import FlatBaseModel
|
||||
import config
|
||||
from gen.config import config
|
||||
|
||||
invalid_date_format = config.get('preferences.invalid-date-format')
|
||||
|
||||
|
@ -63,7 +63,7 @@ import Utils
|
||||
from lru import LRU
|
||||
from gui.views.treemodels.flatbasemodel import FlatBaseModel
|
||||
from gui.views.treemodels.treebasemodel import TreeBaseModel
|
||||
import config
|
||||
from gen.config import config
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -59,7 +59,7 @@ from gui.widgets.toolcomboentry import ToolComboEntry
|
||||
from gui.widgets.springseparator import SpringSeparatorAction
|
||||
from gui.spell import Spell
|
||||
from gui.display import display_url
|
||||
import config
|
||||
from gen.config import config
|
||||
from constfunc import has_display
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
|
@ -44,7 +44,7 @@ LOG = logging.getLogger(".grampsqml")
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import constfunc
|
||||
import config
|
||||
from gen.config import config
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -48,7 +48,7 @@ from gen.plug.menu import EnumeratedListOption, NumberOption, PersonOption
|
||||
from gen.plug.report import Report
|
||||
from gen.plug.report import utils as ReportUtils
|
||||
from gen.plug.report import MenuReportOptions
|
||||
import config
|
||||
from gen.config import config
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -47,7 +47,7 @@ from gen.plug.docgen import (FontStyle, ParagraphStyle, GraphicsStyle,
|
||||
FONT_SANS_SERIF, DASHED, PARA_ALIGN_CENTER)
|
||||
from gen.sort import Sort
|
||||
from gen.display.name import displayer as name_displayer
|
||||
import config
|
||||
from gen.config import config
|
||||
from gen.utils import get_birth_or_fallback, get_death_or_fallback
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
|
@ -51,7 +51,7 @@ from gui.plug.export import WriterOptionBox
|
||||
#import const
|
||||
import Utils
|
||||
from gui.glade import Glade
|
||||
import config
|
||||
from gen.config import config
|
||||
|
||||
class GeneWebWriter(object):
|
||||
def __init__(self, database, filename, user, option_box=None):
|
||||
|
@ -28,7 +28,7 @@ import gen.datehandler
|
||||
from gen.utils import get_birth_or_fallback, get_marriage_or_fallback
|
||||
from gen.errors import WindowActiveError
|
||||
import gtk
|
||||
import config
|
||||
from gen.config import config
|
||||
|
||||
age_precision = config.get('preferences.age-display-precision')
|
||||
|
||||
|
@ -24,7 +24,7 @@ from collections import defaultdict
|
||||
from gen.ggettext import gettext as _
|
||||
|
||||
from gen.plug import Gramplet
|
||||
import config
|
||||
from gen.config import config
|
||||
|
||||
_YIELD_INTERVAL = 350
|
||||
|
||||
|
@ -27,7 +27,7 @@ from collections import defaultdict
|
||||
#------------------------------------------------------------------------
|
||||
from gen.plug import Gramplet
|
||||
from gen.ggettext import sgettext as _
|
||||
import config
|
||||
from gen.config import config
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -27,7 +27,7 @@ from collections import defaultdict
|
||||
#------------------------------------------------------------------------
|
||||
from gen.plug import Gramplet
|
||||
from gen.ggettext import sgettext as _
|
||||
import config
|
||||
from gen.config import config
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -50,7 +50,7 @@ import libgedcom
|
||||
module = __import__("libgedcom")
|
||||
reload (module)
|
||||
|
||||
import config
|
||||
from gen.config import config
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -36,7 +36,7 @@ import random
|
||||
import locale
|
||||
import os
|
||||
from sys import maxint
|
||||
import config
|
||||
from gen.config import config
|
||||
if config.get('preferences.use-bsddb3'):
|
||||
from bsddb3 import db
|
||||
else:
|
||||
|
@ -55,7 +55,7 @@ from gen.display.name import displayer as name_displayer
|
||||
from gui.dialog import ErrorDialog, QuestionDialog
|
||||
from gen.errors import WindowActiveError
|
||||
from gui.views.bookmarks import PersonBookmarks
|
||||
import config
|
||||
from gen.config import config
|
||||
from gui.ddtargets import DdTargets
|
||||
from gui.editors import EditPerson
|
||||
from gui.filters.sidebar import PersonSidebarFilter
|
||||
|
@ -50,7 +50,7 @@ from gui.views.listview import ListView
|
||||
from gui.utils import add_menuitem
|
||||
from gen.errors import WindowActiveError
|
||||
from gui.views.bookmarks import PlaceBookmarks
|
||||
import config
|
||||
from gen.config import config
|
||||
from gui.dialog import ErrorDialog
|
||||
from gui.pluginmanager import GuiPluginManager
|
||||
from gui.ddtargets import DdTargets
|
||||
|
@ -39,7 +39,7 @@ _ = gettext.gettext
|
||||
#------------------------------------------------------------------------
|
||||
import TransUtils
|
||||
import gen.datehandler
|
||||
import config
|
||||
from gen.config import config
|
||||
from gen.lib.grampstype import GrampsType
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
|
@ -54,7 +54,7 @@ from gen.errors import WindowActiveError
|
||||
import const
|
||||
import constfunc
|
||||
from gui.managedwindow import ManagedWindow
|
||||
from config import config
|
||||
from gen.config import config
|
||||
from gui.editors import EditPlace, EditEvent, EditFamily, EditPerson
|
||||
from gui.selectors.selectplace import SelectPlace
|
||||
|
||||
|
@ -58,7 +58,7 @@ from selectionlayer import SelectionLayer
|
||||
from lifewaylayer import LifeWayLayer
|
||||
from datelayer import DateLayer
|
||||
from gen.ggettext import sgettext as _
|
||||
from config import config
|
||||
from gen.config import config
|
||||
from gui.dialog import ErrorDialog
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
|
@ -33,7 +33,7 @@ from Utils import probably_alive
|
||||
from gen.ggettext import gettext as _
|
||||
import gen.datehandler
|
||||
import gen.lib
|
||||
import config
|
||||
from gen.config import config
|
||||
|
||||
def run(database, document, date):
|
||||
"""
|
||||
|
@ -35,7 +35,7 @@ import gtk
|
||||
# GRAMPS modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import config
|
||||
from gen.config import config
|
||||
from gui.basesidebar import BaseSidebar
|
||||
from gui.viewmanager import get_available_views, views_to_show
|
||||
|
||||
|
@ -64,7 +64,7 @@ import gtk
|
||||
#-------------------------------------------------------------------------
|
||||
import gen.lib
|
||||
from gen.db import DbTxn
|
||||
import config
|
||||
from gen.config import config
|
||||
import Utils
|
||||
from gui.utils import ProgressMeter
|
||||
from gui.managedwindow import ManagedWindow
|
||||
|
@ -32,7 +32,7 @@ Show uncollected objects in a window.
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
from gen.ggettext import gettext as _
|
||||
import config
|
||||
from gen.config import config
|
||||
if config.get('preferences.use-bsddb3'):
|
||||
from bsddb3.db import DBError
|
||||
else:
|
||||
|
@ -38,7 +38,7 @@ import gtk
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import const
|
||||
import config
|
||||
from gen.config import config
|
||||
from Utils import get_researcher
|
||||
from gui.display import display_help
|
||||
from gui.widgets import MonitoredEntry
|
||||
|
@ -52,7 +52,7 @@ from gui.views.treemodels import EventModel
|
||||
import Utils
|
||||
from gen.errors import WindowActiveError
|
||||
from gui.views.bookmarks import EventBookmarks
|
||||
import config
|
||||
from gen.config import config
|
||||
from gui.ddtargets import DdTargets
|
||||
from gui.dialog import ErrorDialog
|
||||
from gui.editors import EditEvent, DeleteEventQuery
|
||||
|
@ -51,7 +51,7 @@ from gui.views.treemodels import FamilyModel
|
||||
from gui.editors import EditFamily
|
||||
from gui.views.bookmarks import FamilyBookmarks
|
||||
from gen.errors import WindowActiveError
|
||||
import config
|
||||
from gen.config import config
|
||||
from gui.dialog import ErrorDialog
|
||||
from gui.filters.sidebar import FamilySidebarFilter
|
||||
from gui.merge import MergeFamily
|
||||
|
@ -49,7 +49,7 @@ _LOG = logging.getLogger("GeoGraphy.geoclose")
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import gen.lib
|
||||
import config
|
||||
from gen.config import config
|
||||
import gen.datehandler
|
||||
from gen.display.name import displayer as _nd
|
||||
from gen.utils import conv_lat_lon
|
||||
|
@ -56,7 +56,7 @@ _LOG = logging.getLogger("GeoGraphy.geoevents")
|
||||
#-------------------------------------------------------------------------
|
||||
import gen.lib
|
||||
import Utils
|
||||
import config
|
||||
from gen.config import config
|
||||
import gen.datehandler
|
||||
from gen.display.name import displayer as _nd
|
||||
from gen.utils import conv_lat_lon
|
||||
|
@ -49,7 +49,7 @@ _LOG = logging.getLogger("GeoGraphy.geofamilyclose")
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import gen.lib
|
||||
import config
|
||||
from gen.config import config
|
||||
import gen.datehandler
|
||||
from gen.display.name import displayer as _nd
|
||||
from gen.utils import conv_lat_lon
|
||||
|
@ -56,7 +56,7 @@ _LOG = logging.getLogger("GeoGraphy.geofamily")
|
||||
#-------------------------------------------------------------------------
|
||||
import gen.lib
|
||||
import Utils
|
||||
import config
|
||||
from gen.config import config
|
||||
import gen.datehandler
|
||||
from gen.display.name import displayer as _nd
|
||||
from gen.utils import conv_lat_lon
|
||||
|
@ -52,7 +52,7 @@ _LOG = logging.getLogger("GeoGraphy.geomoves")
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import gen.lib
|
||||
import config
|
||||
from gen.config import config
|
||||
import gen.datehandler
|
||||
from gen.display.name import displayer as _nd
|
||||
from gen.utils import conv_lat_lon
|
||||
|
@ -57,7 +57,7 @@ _LOG = logging.getLogger("GeoGraphy.geoperson")
|
||||
#-------------------------------------------------------------------------
|
||||
import gen.lib
|
||||
import Utils
|
||||
import config
|
||||
from gen.config import config
|
||||
import gen.datehandler
|
||||
from gen.display.name import displayer as _nd
|
||||
from gen.utils import conv_lat_lon
|
||||
|
@ -57,7 +57,7 @@ _LOG = logging.getLogger("GeoGraphy.geoplaces")
|
||||
#-------------------------------------------------------------------------
|
||||
import gen.lib
|
||||
import Utils
|
||||
import config
|
||||
from gen.config import config
|
||||
from gen.display.name import displayer as _nd
|
||||
from gen.utils import conv_lat_lon
|
||||
from gui.views.pageview import PageView
|
||||
|
@ -61,7 +61,7 @@ from gui.views.navigationview import NavigationView
|
||||
from gui.views.bookmarks import PersonBookmarks
|
||||
import Utils
|
||||
import constfunc
|
||||
import config
|
||||
from gen.config import config
|
||||
from const import TEMP_DIR
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
|
@ -54,7 +54,7 @@ from gui.views.listview import ListView
|
||||
from gui.views.treemodels import MediaModel
|
||||
import const
|
||||
import constfunc
|
||||
import config
|
||||
from gen.config import config
|
||||
import Utils
|
||||
from gui.views.bookmarks import MediaBookmarks
|
||||
import gen.mime
|
||||
|
@ -50,7 +50,7 @@ from gui.views.treemodels import NoteModel
|
||||
import Utils
|
||||
from gen.errors import WindowActiveError
|
||||
from gui.views.bookmarks import NoteBookmarks
|
||||
import config
|
||||
from gen.config import config
|
||||
from gen.lib import Note
|
||||
from gui.ddtargets import DdTargets
|
||||
from gui.dialog import ErrorDialog
|
||||
|
@ -59,7 +59,7 @@ from gen.errors import WindowActiveError
|
||||
from gui.editors import EditPerson, EditFamily
|
||||
from gui.ddtargets import DdTargets
|
||||
import cPickle as pickle
|
||||
import config
|
||||
from gen.config import config
|
||||
from gui.views.bookmarks import PersonBookmarks
|
||||
import const
|
||||
import constfunc
|
||||
|
@ -56,7 +56,7 @@ from Utils import media_path_full, probably_alive
|
||||
from gui.utils import open_file_with_default_application
|
||||
import gen.datehandler
|
||||
from gui.thumbnails import get_thumbnail_image
|
||||
import config
|
||||
from gen.config import config
|
||||
from gui import widgets
|
||||
from gui.selectors import SelectorFactory
|
||||
from gen.errors import WindowActiveError
|
||||
|
@ -41,7 +41,7 @@ from gui.views.listview import ListView
|
||||
from gui.views.treemodels import RepositoryModel
|
||||
from gui.views.bookmarks import RepoBookmarks
|
||||
from gen.errors import WindowActiveError
|
||||
import config
|
||||
from gen.config import config
|
||||
from gui.editors import EditRepository, DeleteRepositoryQuery
|
||||
from gui.ddtargets import DdTargets
|
||||
from gui.dialog import ErrorDialog
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user