* src/data/gramps.schemas: Cleanup.
* src/data/Makefile.am: Clen up install rule. Add uninstall rule. * src/StartupDialog.py: Correct use of keys. * src/GrampsCfg.py: Correct usage of gconf. * src/DbPrompter.py: Remove unused module. * src/SelectChild.py: Remove unused module. * src/SelectObject.py: Remove unused module. * src/WriteXML.py: Remove unused module. * src/gramps_main.py: Convert to new gconf usage. * src/FamilyView.py: Convert to new gconf usage. * src/AddSpouse.py: Convert to new gconf usage. * src/ChooseParents.py: Convert to new gconf usage. * src/EditPerson.py: Convert to new gconf usage. * src/EditPlace.py: Convert to new gconf usage. * src/EditSource.py: Convert to new gconf usage. * src/EventEdit.py: Convert to new gconf usage. * src/ImageSelect.py: Convert to new gconf usage. * src/Marriage.py: Convert to new gconf usage. * src/MediaView.py: Convert to new gconf usage. * src/MergeData.py: Convert to new gconf usage. * src/PedView.py: Convert to new gconf usage. * src/Plugins.py: Convert to new gconf usage. * src/RelLib.py: Convert to new gconf usage. * src/TipOfDay.py: Convert to new gconf usage. * src/plugins/AncestorChart2.py: Remove unused module. * src/plugins/AncestorChart.py: Remove unused module. * src/plugins/BookReport.py: Remove unused module. * src/plugins/FanChart.py: Remove unused module. * src/plugins/Partition.py: Remove unused module. * src/plugins/Desbrowser.py: Convert to new gconf usage. * src/plugins/Merge.py: Convert to new gconf usage. * src/plugins/RelCalc.py: Convert to new gconf usage. * src/plugins/WebPage.py: Convert to new gconf usage. svn: r3274
This commit is contained in:
@@ -42,7 +42,6 @@ import gtk
|
||||
# GRAMPS modules
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
import GrampsCfg
|
||||
import BaseDoc
|
||||
import Report
|
||||
import Errors
|
||||
|
||||
@@ -39,7 +39,6 @@ import gtk
|
||||
# GRAMPS modules
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
import GrampsCfg
|
||||
import BaseDoc
|
||||
import Report
|
||||
import Errors
|
||||
|
||||
@@ -67,7 +67,6 @@ from RelLib import Person
|
||||
import const
|
||||
import Utils
|
||||
import ListModel
|
||||
import GrampsCfg
|
||||
import Plugins
|
||||
import Report
|
||||
import BaseDoc
|
||||
|
||||
@@ -119,7 +119,7 @@ class DesBrowse:
|
||||
def add_to_tree(self,parent_id,sib_id,person_id):
|
||||
item_id = self.model.insert_after(parent_id,sib_id)
|
||||
person = self.db.try_to_find_person_from_id(person_id)
|
||||
self.model.set(item_id,0,GrampsCfg.nameof(person))
|
||||
self.model.set(item_id,0,GrampsCfg.get_nameof()(person))
|
||||
self.model.set(item_id,1,person_id)
|
||||
prev_id = None
|
||||
for family_id in person.get_family_id_list():
|
||||
|
||||
@@ -32,7 +32,6 @@ import gtk
|
||||
# gramps modules
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
import GrampsCfg
|
||||
import BaseDoc
|
||||
import Report
|
||||
import Errors
|
||||
|
||||
@@ -621,7 +621,7 @@ class Merge:
|
||||
def name_of(p):
|
||||
if not p:
|
||||
return ""
|
||||
return "%s (%s)" % ( GrampsCfg.nameof(p),p.get_id())
|
||||
return "%s (%s)" % ( GrampsCfg.get_nameof()(p),p.get_id())
|
||||
|
||||
def get_name_obj(person):
|
||||
if person:
|
||||
|
||||
@@ -167,8 +167,8 @@ class RelCalc:
|
||||
commontext = ""
|
||||
|
||||
text1 = self.glade.get_widget("text1").get_buffer()
|
||||
p1 = GrampsCfg.nameof(self.person)
|
||||
p2 = GrampsCfg.nameof(other_person)
|
||||
p1 = GrampsCfg.get_nameof()(self.person)
|
||||
p2 = GrampsCfg.get_nameof()(other_person)
|
||||
|
||||
if rel_string == "":
|
||||
rstr = _("%(person)s and %(active_person)s are not related.") % {
|
||||
|
||||
@@ -1233,7 +1233,7 @@ class WebReportDialog(Report.ReportDialog):
|
||||
"""Get the name of the directory to which the target dialog
|
||||
box should default. This value can be set in the preferences
|
||||
panel."""
|
||||
return GrampsCfg.web_dir
|
||||
return GrampsCfg.get_web_dir()
|
||||
|
||||
def set_default_directory(self, value):
|
||||
"""Save the name of the current directory, so that any future
|
||||
@@ -1243,7 +1243,7 @@ class WebReportDialog(Report.ReportDialog):
|
||||
This means that the last directory used will only be
|
||||
remembered for this session of gramps unless the user saves
|
||||
his/her preferences."""
|
||||
GrampsCfg.web_dir = value
|
||||
GrampsCfg.save_web_dir(value)
|
||||
|
||||
def make_default_style(self):
|
||||
"""Make the default output style for the Web Pages Report."""
|
||||
|
||||
Reference in New Issue
Block a user