Merge changes done in the TOOL_OPT branch as follows:

* src/Tool.py: Add to CVS: Generic tool interface.
* src/ArgHandler.py: Support command line mode for tools.
* src/PluginMgr.py: New tool registration scheme.
* src/Plugins.py: Convert to tool registration scheme.
* src/const.py.in: Add tool categories.
* src/plugins/ChangeTypes.py: Convert to new scheme.
* src/Options.py: Add to CVS: generic options interface.
* src/ReportOptions.py: Keep only report-specific option
handling.
* src/Makefile.am: Ship new files.

* src/plugins/Checkpoint.py: Minor improvements for the RCS.
* src/plugins/Makefile.am: Ship Checkpoint.py.


svn: r5220
This commit is contained in:
Alex Roitman
2005-09-23 21:41:23 +00:00
parent 4f003d46b4
commit 374e117c17
11 changed files with 1078 additions and 438 deletions

View File

@@ -1963,10 +1963,13 @@ class Gramps(GrampsDBCallback.GrampsDBCallback):
task(self.db,self.active_person,report_class,
options_class,translated_name,name,category)
def menu_tools(self,obj,task):
def menu_tools(self,obj,task,tool_class,options_class,
translated_name,name,category):
"""Call the tool plugin selected from the menus"""
if self.active_person:
task(self.db,self.active_person,self.tool_callback,self)
task(self.db,self.active_person,tool_class,options_class,
translated_name,name,category,
self.tool_callback,self)
def open_example(self,obj):
import shutil