Elimination of redundant code, new registering method for plugins
svn: r367
This commit is contained in:
@@ -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.")
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user