3272: Proposal for updating config settings
svn: r13346
This commit is contained in:
@@ -51,7 +51,7 @@ import gobject
|
||||
import Utils
|
||||
from gui.utils import ProgressMeter, open_file_with_default_application
|
||||
from gen.plug.docgen import BaseDoc, GVDoc
|
||||
import Config
|
||||
import config
|
||||
from ReportBase import CATEGORY_GRAPHVIZ
|
||||
from _ReportDialog import ReportDialog
|
||||
from _PaperMenu import PaperFrame
|
||||
|
||||
@@ -45,7 +45,7 @@ import gtk
|
||||
# GRAMPS modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import Config
|
||||
import config
|
||||
import Errors
|
||||
from QuestionDialog import ErrorDialog, OptionDialog
|
||||
from ReportBase import (CATEGORY_TEXT, CATEGORY_DRAW, CATEGORY_BOOK,
|
||||
@@ -405,7 +405,7 @@ class ReportDialog(ManagedWindow.ManagedWindow):
|
||||
"""Get the name of the directory to which the target dialog
|
||||
box should default. This value can be set in the preferences
|
||||
panel."""
|
||||
return Config.get(Config.REPORT_DIRECTORY)
|
||||
return config.get('paths.report-directory')
|
||||
|
||||
def set_default_directory(self, value):
|
||||
"""Save the name of the current directory, so that any future
|
||||
@@ -415,7 +415,7 @@ class ReportDialog(ManagedWindow.ManagedWindow):
|
||||
This means that the last directory used will only be
|
||||
remembered for this session of gramps unless the user saves
|
||||
his/her preferences."""
|
||||
Config.set(Config.REPORT_DIRECTORY, value)
|
||||
config.set('paths.report-directory', value)
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
|
||||
@@ -54,7 +54,7 @@ except:
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import const
|
||||
import Config
|
||||
import config
|
||||
from gen.plug.docgen import PAPER_PORTRAIT
|
||||
from PluginUtils import _Options, GuiMenuOptions
|
||||
|
||||
@@ -244,8 +244,8 @@ class OptionListCollection(_Options.OptionListCollection):
|
||||
def init_common(self):
|
||||
# Default values for common options
|
||||
self.default_style_name = "default"
|
||||
self.default_paper_metric = Config.get(Config.PAPER_METRIC)
|
||||
self.default_paper_name = Config.get(Config.PAPER_PREFERENCE)
|
||||
self.default_paper_metric = config.get('preferences.paper-metric')
|
||||
self.default_paper_name = config.get('preferences.paper-preference')
|
||||
self.default_orientation = PAPER_PORTRAIT
|
||||
self.default_css_filename = ""
|
||||
self.default_custom_paper_size = [29.7, 21.0]
|
||||
|
||||
Reference in New Issue
Block a user