Elimination of redundant code, new registering method for plugins

svn: r367
This commit is contained in:
Don Allingham
2001-08-31 03:40:23 +00:00
parent 8543bd85f7
commit 59d53915b9
59 changed files with 1872 additions and 2518 deletions

View File

@@ -905,17 +905,6 @@ class Merge:
def runTool(database,active_person,callback):
mergeObj = Merge(database,callback)
#-------------------------------------------------------------------------
#
#
#
#-------------------------------------------------------------------------
def get_description():
return _("Searches the entire database, looking for individual entries that may represent the same person.")
def get_name():
return _("Database Processing/Merge people")
#-------------------------------------------------------------------------
#
#
@@ -950,3 +939,18 @@ def on_merge_clicked(obj):
#-------------------------------------------------------------------------
def by_id(p1,p2):
return cmp(p1.getId(),p2.getId())
#-------------------------------------------------------------------------
#
#
#
#-------------------------------------------------------------------------
from Plugins import register_tool
register_tool(
runTool,
_("Merge people"),
category=_("Database Processing"),
description=_("Searches the entire database, looking for individual entries that may represent the same person.")
)