* src/NameDisplay.py: Rewrite in more object oriented way; Interface
	change.
	* src/ViewManager.py (post_load_newdb): Change of NameDisplay interface.
	* src/GrampsDb/_ReadXML.py (parse): Change of NameDisplay interface.
	* src/GrampsDb/_ReadGrdb.py (importData): Change of NameDisplay
	interface.
	* src/GrampsCfg.py: Change of NameDisplay interface; Name format Edit
	and Add callbacks divided.
	* src/RelLib/_Name.py: Default/standard name format definitions moved to
	NameDisplay.
	* src/Editors/_EditName.py (_setup_fields): Change of NameDisplay
	interface.
	* src/plugins/Check.py (cleanup_deleted_name_formats): Change of
	NameDisplay interface.



svn: r7099
This commit is contained in:
Zsolt Foldvari
2006-07-31 11:08:44 +00:00
parent e9cf818b7c
commit a16b488d1d
9 changed files with 201 additions and 325 deletions

View File

@@ -81,7 +81,7 @@ def importData(database, filename, callback=None,cl=0,use_trans=True):
# we need to do tricks to remap the format numbers
if len(other_database.name_formats) > 0:
formats_map = remap_name_formats(database,other_database)
NameDisplay.displayer.register_custom_formats(database.name_formats)
NameDisplay.displayer.set_name_format(database.name_formats)
get_person = make_peron_name_remapper(other_database,formats_map)
else:
# No remapping necessary, proceed as usual

View File

@@ -621,7 +621,7 @@ class GrampsParser(UpdateCallback):
# add new name formats to the existing table
self.db.name_formats += self.name_formats
# Register new formats
NameDisplay.displayer.register_custom_formats(self.db.name_formats)
NameDisplay.displayer.set_name_format(self.db.name_formats)
self.db.set_researcher(self.owner)
if self.home != None: