Add Config package

svn: r6044
This commit is contained in:
Alex Roitman
2006-03-03 00:10:52 +00:00
parent 72ff16c982
commit bc6848cf20
26 changed files with 223 additions and 214 deletions

View File

@@ -46,7 +46,7 @@ import const
import Utils
import PluginMgr
import QuestionDialog
import GrampsKeys
import Config
import GrampsDisplay
import Assistant
@@ -161,7 +161,7 @@ class Exporter:
Depending on the success status, set the text for the final page.
"""
filename = self.chooser.get_filename()
GrampsKeys.save_last_export_dir(os.path.split(filename)[0])
Config.save_last_export_dir(os.path.split(filename)[0])
ix = self.get_selected_format_index()
self.pre_save()
if self.exports[ix][3]:
@@ -296,9 +296,9 @@ class Exporter:
ext = self.exports[ix][4]
# Suggested folder: try last export, then last import, then home.
default_dir = GrampsKeys.get_last_export_dir()
default_dir = Config.get_last_export_dir()
if len(default_dir)<=1:
default_dir = GrampsKeys.get_last_import_dir()
default_dir = Config.get_last_import_dir()
if len(default_dir)<=1:
default_dir = '~/'