svn: r6116
This commit is contained in:
Alex Roitman 2006-03-09 19:39:55 +00:00
parent ded2411217
commit 4d2ec05362

View File

@ -1,7 +1,7 @@
# #
# Gramps - a GTK+/GNOME based genealogy program # Gramps - a GTK+/GNOME based genealogy program
# #
# Copyright (C) 2005 Donald N. Allingham # Copyright (C) 2005-2006 Donald N. Allingham
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
@ -44,7 +44,7 @@ import const
import Utils import Utils
import GenericFilter import GenericFilter
import NameDisplay import NameDisplay
import Options from _Options import *
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
@ -240,16 +240,16 @@ def cli_tool(database,name,category,tool_class,options_class,options_str_dict):
# Class handling options for plugins # Class handling options for plugins
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
class OptionHandler(Options.OptionHandler): class OptionHandler(OptionHandler):
""" """
Implements handling of the options for the plugins. Implements handling of the options for the plugins.
""" """
def __init__(self,module_name,options_dict,person_id=None): def __init__(self,module_name,options_dict,person_id=None):
Options.OptionHandler.__init__(self,module_name,options_dict,person_id) OptionHandler.__init__(self,module_name,options_dict,person_id)
def init_subclass(self): def init_subclass(self):
self.collection_class = Options.OptionListCollection self.collection_class = OptionListCollection
self.list_class = Options.OptionList self.list_class = OptionList
self.filename = const.tool_options self.filename = const.tool_options
#------------------------------------------------------------------------ #------------------------------------------------------------------------
@ -257,7 +257,7 @@ class OptionHandler(Options.OptionHandler):
# Tool Options class # Tool Options class
# #
#------------------------------------------------------------------------ #------------------------------------------------------------------------
class ToolOptions(Options.Options): class ToolOptions(Options):
""" """
Defines options and provides handling interface. Defines options and provides handling interface.