Config method changed

svn: r6429
This commit is contained in:
Don Allingham
2006-04-24 21:04:01 +00:00
parent 999711b902
commit 5afa945819
24 changed files with 557 additions and 1068 deletions

View File

@@ -169,7 +169,7 @@ class Exporter:
Depending on the success status, set the text for the final page.
"""
filename = self.chooser.get_filename()
Config.save_last_export_dir(os.path.split(filename)[0])
Config.set(Config.RECENT_EXPORT_DIR,os.path.split(filename)[0])
ix = self.get_selected_format_index()
self.pre_save()
if self.exports[ix][3]:
@@ -304,9 +304,9 @@ class Exporter:
ext = self.exports[ix][4]
# Suggested folder: try last export, then last import, then home.
default_dir = Config.get_last_export_dir()
default_dir = Config.get(Config.RECENT_EXPORT_DIR)
if len(default_dir)<=1:
default_dir = Config.get_last_import_dir()
default_dir = Config.get(Config.RECENT_IMPORT_DIR)
if len(default_dir)<=1:
default_dir = const.user_home