* src/GrampsGconfKeys.py: Add to CVS -- split off key names.

* src/Makefile.am: Ship GrampsGconfKeys.
* src/ArgHandler.py: Use GrampsGconfKeys.
* src/DbPrompter.py: Use GrampsGconfKeys.
* src/EditPerson.py: Use GrampsGconfKeys.
* src/Exporter.py: Use GrampsGconfKeys.
* src/FamilyView.py: Use GrampsGconfKeys.
* src/GrampsDbBase.py: Use GrampsGconfKeys.
* src/ImageSelect.py: Use GrampsGconfKeys.
* src/MediaView.py: Use GrampsGconfKeys.
* src/Plugins.py: Use GrampsGconfKeys.
* src/Report.py: Use GrampsGconfKeys.
* src/StartupDialog.py: Use GrampsGconfKeys.
* src/TipOfDay.py: Use GrampsGconfKeys.
* src/Utils.py: Use GrampsGconfKeys.
* src/DateDisplay.py: Proper capitalization for _MONS.
* src/DateHandler.py: Use GrampsGconfKeys.
* src/GrampsCfg.py: Use GrampsGconfKeys.
* src/gramps_main.py: Use GrampsGconfKeys.


svn: r3573
This commit is contained in:
Alex Roitman
2004-09-25 05:12:15 +00:00
parent f65f42f4ef
commit 5d5d0a36e2
20 changed files with 685 additions and 599 deletions

View File

@@ -50,7 +50,7 @@ import const
import Utils
import Plugins
import QuestionDialog
import GrampsCfg
import GrampsGconfKeys
#-------------------------------------------------------------------------
#
@@ -204,7 +204,7 @@ class Exporter:
Depending on the success status, set the text for the final page.
"""
filename = self.chooser.get_filename()
GrampsCfg.save_last_export_dir(os.path.split(filename)[0])
GrampsGconfKeys.save_last_export_dir(os.path.split(filename)[0])
ix = self.get_selected_format_index()
if self.exports[ix][3]:
success = self.exports[ix][0](self.parent.db,filename,self.person,
@@ -333,9 +333,9 @@ class Exporter:
ext = self.exports[ix][4]
# Suggested folder: try last export, then last import, then home.
default_dir = GrampsCfg.get_last_export_dir()
default_dir = GrampsGconfKeys.get_last_export_dir()
if len(default_dir)<=1:
default_dir = GrampsCfg.get_last_import_dir()
default_dir = GrampsGconfKeys.get_last_import_dir()
if len(default_dir)<=1:
default_dir = '~/'