Move PluginUtils/_PluginMgr.py to gen/plug/_manager.py. Now, instead of "from PluginUtils import PluginManager", use "from gen.plug import PluginManager".
svn: r11100
This commit is contained in:
+2
-1
@@ -62,7 +62,8 @@ import gen.db.exceptions as GX
|
||||
import gen
|
||||
from DbManager import CLIDbManager, NAME_FILE, find_locker_name
|
||||
|
||||
from PluginUtils import Tool, PluginManager
|
||||
from PluginUtils import Tool
|
||||
from gen.plug import PluginManager
|
||||
from ReportBase import CATEGORY_BOOK, CATEGORY_CODE, CATEGORY_WEB, cl_report
|
||||
|
||||
IMPORT_TYPES = (const.APP_GRAMPS_XML, const.APP_GEDCOM,
|
||||
|
||||
+1
-1
@@ -60,7 +60,7 @@ import Mime
|
||||
import gen.db
|
||||
import GrampsDbUtils
|
||||
import Utils
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
from QuestionDialog import (DBErrorDialog, ErrorDialog, QuestionDialog2,
|
||||
WarningDialog)
|
||||
import Errors
|
||||
|
||||
+1
-1
@@ -56,7 +56,7 @@ import Config
|
||||
from BasicUtils import name_displayer
|
||||
import const
|
||||
import ManagedWindow
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
|
||||
DISABLED = -1
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ import gtk
|
||||
|
||||
import const
|
||||
import Config
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
import Utils
|
||||
import ManagedWindow
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ import logging
|
||||
log = logging.getLogger(".GrampDb")
|
||||
|
||||
from gen.db import GrampsDbException
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
|
||||
def gramps_db_reader_factory(db_type):
|
||||
"""Factory class for obtaining a Gramps database importer.
|
||||
|
||||
@@ -1531,6 +1531,6 @@ DESCRIPTION = _('GEDCOM is used to transfer data between genealogy programs. '
|
||||
CONFIG = (_('GEDCOM export options'), ExportOptions.WriterOptionBox)
|
||||
FILENAME = 'ged'
|
||||
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
pmgr = PluginManager.get_instance()
|
||||
pmgr.register_export(export_data, TITLE, DESCRIPTION, CONFIG, FILENAME)
|
||||
|
||||
@@ -144,6 +144,6 @@ DESCRIPTION = _('The GRAMPS XML database is a text version of a family tree. '
|
||||
CONFIG = (_('GRAMPS XML export options'), ExportOptions.WriterOptionBox)
|
||||
FILENAME = 'gramps'
|
||||
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
pmgr = PluginManager.get_instance()
|
||||
pmgr.register_export(export_data, TITLE, DESCRIPTION, CONFIG, FILENAME)
|
||||
|
||||
@@ -43,7 +43,7 @@ from gettext import gettext as _
|
||||
import const
|
||||
from ReportBase import report, standalone_categories
|
||||
import _Tool
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
import ManagedWindow
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
@@ -45,7 +45,7 @@ import gobject
|
||||
#-------------------------------------------------------------------------
|
||||
import ManagedWindow
|
||||
import Errors
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
import _Tool as Tool
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
@@ -48,9 +48,6 @@ from PluginUtils import (Options, OptionHandler, OptionList,
|
||||
# Constants
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
# Modes for running tools
|
||||
MODE_GUI = 1 # Standrt tool using GUI
|
||||
MODE_CLI = 2 # Command line interface (CLI)
|
||||
|
||||
# Tool categories
|
||||
TOOL_DEBUG = -1
|
||||
|
||||
@@ -24,8 +24,6 @@
|
||||
from _GuiOptions import GuiMenuOptions, make_gui_option
|
||||
from _Options import Options, OptionListCollection, OptionList, OptionHandler
|
||||
|
||||
from _PluginMgr import PluginManager
|
||||
|
||||
import _Tool as Tool
|
||||
from _PluginDialogs import ReportPluginDialog, ToolPluginDialog
|
||||
import _PluginWindows as PluginWindows
|
||||
|
||||
+1
-1
@@ -54,7 +54,7 @@ import gtk
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
from ReportBase import (CATEGORY_QR_PERSON, CATEGORY_QR_FAMILY,
|
||||
CATEGORY_QR_EVENT, CATEGORY_QR_SOURCE, CATEGORY_QR_MISC,
|
||||
CATEGORY_QR_PLACE, CATEGORY_QR_REPOSITORY)
|
||||
|
||||
@@ -36,6 +36,7 @@ import gobject
|
||||
#-------------------------------------------------------------------------
|
||||
import Config
|
||||
import PluginUtils
|
||||
import gen
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
@@ -45,7 +46,7 @@ import PluginUtils
|
||||
class BookFormatComboBox(gtk.ComboBox):
|
||||
|
||||
def __init__(self):
|
||||
pmgr = PluginUtils.PluginManager.get_instance()
|
||||
pmgr = gen.plug.PluginManager.get_instance()
|
||||
self.__book_doc_list = pmgr.get_book_doc_list()
|
||||
self.__book_doc_list.sort()
|
||||
gtk.ComboBox.__init__(self)
|
||||
|
||||
@@ -40,7 +40,6 @@ log = logging.getLogger(".")
|
||||
# Gramps modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import PluginUtils
|
||||
import gen
|
||||
import Utils
|
||||
import BaseDoc
|
||||
@@ -126,7 +125,7 @@ class CommandLineReport:
|
||||
"""
|
||||
Initialize the options that are hard-coded into the report system.
|
||||
"""
|
||||
pmgr = PluginUtils.PluginManager.get_instance()
|
||||
pmgr = gen.plug.PluginManager.get_instance()
|
||||
_textdoc_list = pmgr.get_text_doc_list()
|
||||
_drawdoc_list = pmgr.get_draw_doc_list()
|
||||
_bookdoc_list = pmgr.get_book_doc_list()
|
||||
@@ -285,7 +284,7 @@ class CommandLineReport:
|
||||
|
||||
self.option_class.handler.output = self.options_dict['of']
|
||||
|
||||
pmgr = PluginUtils.PluginManager.get_instance()
|
||||
pmgr = gen.plug.PluginManager.get_instance()
|
||||
|
||||
if self.category == CATEGORY_TEXT:
|
||||
for item in pmgr.get_text_doc_list():
|
||||
|
||||
@@ -35,10 +35,7 @@ from gettext import gettext as _
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
# Modes for generating reports
|
||||
MODE_GUI = 1 # Standalone report using GUI
|
||||
MODE_BKI = 2 # Book Item interface using GUI
|
||||
MODE_CLI = 4 # Command line interface (CLI)
|
||||
|
||||
|
||||
# Report categories
|
||||
CATEGORY_TEXT = 0
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
import gtk
|
||||
import gobject
|
||||
import Config
|
||||
import PluginUtils
|
||||
import gen
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
@@ -34,7 +34,7 @@ import PluginUtils
|
||||
class DrawFormatComboBox(gtk.ComboBox):
|
||||
|
||||
def __init__(self):
|
||||
pmgr = PluginUtils.PluginManager.get_instance()
|
||||
pmgr = gen.plug.PluginManager.get_instance()
|
||||
self.__drawdoc_list = pmgr.get_draw_doc_list()
|
||||
self.__drawdoc_list.sort()
|
||||
gtk.ComboBox.__init__(self)
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
import gtk
|
||||
import gobject
|
||||
import Config
|
||||
import PluginUtils
|
||||
import gen
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
@@ -34,7 +34,7 @@ import PluginUtils
|
||||
class TextFormatComboBox(gtk.ComboBox):
|
||||
|
||||
def __init__(self):
|
||||
pmgr = PluginUtils.PluginManager.get_instance()
|
||||
pmgr = gen.plug.PluginManager.get_instance()
|
||||
self.__text_doc_list = pmgr.get_text_doc_list()
|
||||
self.__text_doc_list.sort()
|
||||
gtk.ComboBox.__init__(self)
|
||||
|
||||
+2
-1
@@ -55,8 +55,9 @@ import gtk
|
||||
# GRAMPS modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from PluginUtils import Tool, PluginWindows, PluginManager, \
|
||||
from PluginUtils import Tool, PluginWindows, \
|
||||
ReportPluginDialog, ToolPluginDialog
|
||||
from gen.plug import PluginManager
|
||||
import ReportBase
|
||||
import DisplayState
|
||||
import const
|
||||
|
||||
@@ -34,7 +34,7 @@ from gettext import gettext as _
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
import BaseDoc
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
import Errors
|
||||
import Mime
|
||||
import Utils
|
||||
|
||||
@@ -44,7 +44,7 @@ import os
|
||||
#------------------------------------------------------------------------
|
||||
import BaseDoc
|
||||
from CairoDoc import CairoDoc
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
import Errors
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
|
||||
@@ -36,7 +36,7 @@ from gettext import gettext as _
|
||||
# GRAMPS modules
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
import ImgManip
|
||||
import tarfile
|
||||
import const
|
||||
|
||||
@@ -43,7 +43,7 @@ from gettext import gettext as _
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
import BaseDoc
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
import ImgManip
|
||||
import Errors
|
||||
import Mime
|
||||
|
||||
@@ -43,7 +43,7 @@ from xml.sax.saxutils import escape
|
||||
#-------------------------------------------------------------------------
|
||||
import BaseDoc
|
||||
import const
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
from ReportBase import ReportUtils
|
||||
import ImgManip
|
||||
import FontScale
|
||||
|
||||
@@ -32,7 +32,7 @@ from gettext import gettext as _
|
||||
#Gramps modules
|
||||
#-------------------------------------------------------------------------
|
||||
from ReportBase import ReportUtils, run_print_dialog, get_print_dialog_app
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
import BaseDoc
|
||||
import Errors
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ from gettext import gettext as _
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
from CairoDoc import CairoDoc
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
import Utils
|
||||
import Mime
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ from gettext import gettext as _
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
import BaseDoc
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
import ImgManip
|
||||
import Errors
|
||||
import Mime
|
||||
|
||||
@@ -34,7 +34,7 @@ import StringIO
|
||||
# Gramps modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
import BaseDoc
|
||||
import Errors
|
||||
|
||||
|
||||
@@ -22,3 +22,6 @@ The "plug" package for handling plugins in Gramps.
|
||||
"""
|
||||
|
||||
__all__ = [ "opt" ]
|
||||
|
||||
from _manager import PluginManager
|
||||
|
||||
|
||||
@@ -21,12 +21,12 @@
|
||||
# $Id$
|
||||
|
||||
"""
|
||||
The core of the GRAMPS plugin system. This module provides tasks to load
|
||||
plugins from specfied directories, build menus for the different categories,
|
||||
and provide dialog to select and execute plugins.
|
||||
The core of the GRAMPS plugin system. This module provides capability to load
|
||||
plugins from specfied directories and provide information about the loaded
|
||||
plugins.
|
||||
|
||||
Plugins are divided into several categories. This are: reports, tools,
|
||||
importers, exporters, and document generators.
|
||||
Plugins are divided into several categories. These are: reports, tools,
|
||||
importers, exporters, quick reports, and document generators.
|
||||
"""
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
@@ -44,7 +44,6 @@ from gettext import gettext as _
|
||||
# GRAMPS modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from ReportBase import MODE_GUI, MODE_CLI, MODE_BKI, book_categories
|
||||
import gen.utils
|
||||
import Relationship
|
||||
|
||||
@@ -66,6 +65,15 @@ class PluginManager(gen.utils.Callback):
|
||||
|
||||
__signals__ = { 'plugins-reloaded' : None }
|
||||
|
||||
# Modes for generating reports
|
||||
REPORT_MODE_GUI = 1 # Standalone report using GUI
|
||||
REPORT_MODE_BKI = 2 # Book Item interface using GUI
|
||||
REPORT_MODE_CLI = 4 # Command line interface (CLI)
|
||||
|
||||
# Modes for running tools
|
||||
TOOL_MODE_GUI = 1 # Standrt tool using GUI
|
||||
TOOL_MODE_CLI = 2 # Command line interface (CLI)
|
||||
|
||||
def get_instance():
|
||||
""" Use this function to get the instance of the PluginManager """
|
||||
if PluginManager.__instance is None:
|
||||
@@ -305,17 +313,15 @@ class PluginManager(gen.utils.Callback):
|
||||
This function should be used to register tool in GUI and/or
|
||||
command-line mode.
|
||||
"""
|
||||
|
||||
import _Tool
|
||||
|
||||
(junk, gui_task) = divmod(modes, 2**_Tool.MODE_GUI)
|
||||
(junk, gui_task) = divmod(modes, 2**PluginManager.TOOL_MODE_GUI)
|
||||
if gui_task:
|
||||
self.__register_gui_tool(tool_class, options_class, translated_name,
|
||||
name, category, description,
|
||||
status, author_name, author_email, unsupported,
|
||||
require_active)
|
||||
|
||||
(junk, cli_task) = divmod(modes-gui_task, 2**_Tool.MODE_CLI)
|
||||
(junk, cli_task) = divmod(modes-gui_task,
|
||||
2**PluginManager.TOOL_MODE_CLI)
|
||||
if cli_task:
|
||||
self.__register_cli_tool(name, category, tool_class, options_class,
|
||||
translated_name, unsupported)
|
||||
@@ -369,7 +375,8 @@ class PluginManager(gen.utils.Callback):
|
||||
The low-level functions (starting with '_') should not be used
|
||||
on their own. Instead, this function will call them as needed.
|
||||
"""
|
||||
(junk, standalone_task) = divmod(modes, 2**MODE_GUI)
|
||||
(junk, standalone_task) = divmod(modes,
|
||||
2**PluginManager.REPORT_MODE_GUI)
|
||||
if standalone_task:
|
||||
self.__register_standalone(report_class, options_class,
|
||||
translated_name, name, category,
|
||||
@@ -377,15 +384,16 @@ class PluginManager(gen.utils.Callback):
|
||||
author_email, unsupported,
|
||||
require_active)
|
||||
|
||||
(junk, book_item_task) = divmod(modes-standalone_task, 2**MODE_BKI)
|
||||
(junk, book_item_task) = divmod(modes-standalone_task,
|
||||
2**PluginManager.REPORT_MODE_BKI)
|
||||
if book_item_task:
|
||||
book_item_category = book_categories[category]
|
||||
book_item_category = category
|
||||
self.__register_book_item(translated_name, book_item_category,
|
||||
report_class, options_class, name,
|
||||
unsupported, require_active)
|
||||
|
||||
(junk, command_line_task) = divmod(modes-standalone_task-book_item_task,
|
||||
2**MODE_CLI)
|
||||
2**PluginManager.REPORT_MODE_CLI)
|
||||
if command_line_task:
|
||||
self.__register_cl_report(name, category, report_class,
|
||||
options_class, translated_name,
|
||||
@@ -25,7 +25,7 @@ Display references for any object
|
||||
|
||||
from Simple import SimpleAccess, SimpleDoc, SimpleTable
|
||||
from gettext import gettext as _
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
from ReportBase import CATEGORY_QR_DATE
|
||||
import DateHandler
|
||||
import gen.lib
|
||||
|
||||
@@ -36,10 +36,9 @@ from gettext import gettext as _
|
||||
# gramps modules
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
from gen.plug.menu import BooleanOption, NumberOption, PersonOption
|
||||
from ReportBase import Report, ReportUtils, MenuReportOptions, \
|
||||
CATEGORY_TEXT, MODE_GUI, MODE_BKI, MODE_CLI
|
||||
from ReportBase import Report, ReportUtils, MenuReportOptions, CATEGORY_TEXT
|
||||
import BaseDoc
|
||||
from BasicUtils import name_displayer
|
||||
|
||||
@@ -342,7 +341,9 @@ pmgr.register_report(
|
||||
category = CATEGORY_TEXT,
|
||||
report_class = AncestorReport,
|
||||
options_class = AncestorOptions,
|
||||
modes = MODE_GUI | MODE_BKI | MODE_CLI,
|
||||
modes = PluginManager.REPORT_MODE_GUI | \
|
||||
PluginManager.REPORT_MODE_BKI | \
|
||||
PluginManager.REPORT_MODE_CLI,
|
||||
translated_name = _("Ahnentafel Report"),
|
||||
status = _("Stable"),
|
||||
description = _("Produces a textual ancestral report"),
|
||||
|
||||
@@ -38,10 +38,9 @@ from gettext import gettext as _
|
||||
#------------------------------------------------------------------------
|
||||
import BaseDoc
|
||||
from SubstKeywords import SubstKeywords
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
from gen.plug.menu import BooleanOption, NumberOption, TextOption, PersonOption
|
||||
from ReportBase import Report, ReportUtils, CATEGORY_DRAW, MenuReportOptions, \
|
||||
MODE_GUI, MODE_BKI, MODE_CLI
|
||||
from ReportBase import Report, ReportUtils, CATEGORY_DRAW, MenuReportOptions
|
||||
from BasicUtils import name_displayer
|
||||
pt2cm = ReportUtils.pt2cm
|
||||
cm2pt = ReportUtils.cm2pt
|
||||
@@ -531,7 +530,9 @@ pmgr.register_report(
|
||||
category = CATEGORY_DRAW,
|
||||
report_class = AncestorTree,
|
||||
options_class = AncestorTreeOptions,
|
||||
modes = MODE_GUI | MODE_BKI | MODE_CLI,
|
||||
modes = PluginManager.REPORT_MODE_GUI | \
|
||||
PluginManager.REPORT_MODE_BKI | \
|
||||
PluginManager.REPORT_MODE_CLI,
|
||||
translated_name = _("Ancestor Tree"),
|
||||
status = _("Stable"),
|
||||
author_name = "Donald N. Allingham",
|
||||
|
||||
@@ -72,12 +72,12 @@ import ListModel
|
||||
import Errors
|
||||
import BaseDoc
|
||||
from QuestionDialog import WarningDialog, ErrorDialog
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
from gen.plug.menu import PersonOption, FilterOption, FamilyOption
|
||||
import ManagedWindow
|
||||
|
||||
# Import from specific modules in ReportBase
|
||||
from ReportBase._Constants import CATEGORY_BOOK, MODE_GUI, MODE_CLI
|
||||
from ReportBase import CATEGORY_BOOK, book_categories
|
||||
from ReportBase._BookFormatComboBox import BookFormatComboBox
|
||||
from ReportBase._ReportDialog import ReportDialog
|
||||
from ReportBase._DocReportDialog import DocReportDialog
|
||||
@@ -204,7 +204,7 @@ class BookItem:
|
||||
if item[5]:
|
||||
self.category = _UNSUPPORTED
|
||||
else:
|
||||
self.category = item[1]
|
||||
self.category = book_categories[item[1]]
|
||||
self.write_item = item[2]
|
||||
self.name = item[4]
|
||||
self.option_class = item[3](self.name, self.dbase)
|
||||
@@ -757,7 +757,7 @@ class BookReportSelector(ManagedWindow.ManagedWindow):
|
||||
if book_item[5]:
|
||||
category = _UNSUPPORTED
|
||||
else:
|
||||
category = book_item[1]
|
||||
category = book_categories[book_item[1]]
|
||||
|
||||
data = [ book_item[0], category, book_item[4] ]
|
||||
new_iter = self.av_model.add(data)
|
||||
@@ -1245,7 +1245,7 @@ pmgr.register_report(
|
||||
category = CATEGORY_BOOK,
|
||||
report_class = BookReportSelector,
|
||||
options_class = cl_report,
|
||||
modes = MODE_GUI | MODE_CLI,
|
||||
modes = PluginManager.REPORT_MODE_GUI | PluginManager.REPORT_MODE_CLI,
|
||||
translated_name = _("Book Report"),
|
||||
status = _("Stable"),
|
||||
description = _("Produces a book containing several reports."),
|
||||
|
||||
@@ -36,7 +36,8 @@ import time
|
||||
# GRAMPS modules
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
from PluginUtils import Tool, PluginManager, PluginWindows, MenuToolOptions
|
||||
from PluginUtils import Tool, PluginWindows, MenuToolOptions
|
||||
from gen.plug import PluginManager
|
||||
from gen.plug.menu import BooleanOption, NumberOption, StringOption, \
|
||||
FilterOption, PersonOption
|
||||
import gen.lib
|
||||
@@ -488,7 +489,7 @@ pmgr.register_tool(
|
||||
category = Tool.TOOL_DBPROC,
|
||||
tool_class = CalcToolManagedWindow,
|
||||
options_class = CalcEstDateOptions,
|
||||
modes = Tool.MODE_GUI,
|
||||
modes = PluginManager.TOOL_MODE_GUI,
|
||||
translated_name = _("Calculate Estimated Dates"),
|
||||
status = _("Beta"),
|
||||
author_name = "Douglas S. Blank",
|
||||
|
||||
@@ -37,10 +37,9 @@ import os
|
||||
#------------------------------------------------------------------------
|
||||
import BaseDoc
|
||||
from BasicUtils import name_displayer
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
from ReportBase import (Report, ReportUtils, MenuReportOptions,
|
||||
CATEGORY_DRAW, CATEGORY_TEXT,
|
||||
MODE_GUI, MODE_BKI, MODE_CLI)
|
||||
CATEGORY_DRAW, CATEGORY_TEXT)
|
||||
from gen.plug.menu import BooleanOption, StringOption, NumberOption, \
|
||||
EnumeratedListOption, FilterOption, PersonOption
|
||||
import GrampsLocale
|
||||
@@ -924,7 +923,9 @@ pmgr.register_report(
|
||||
category = CATEGORY_DRAW,
|
||||
report_class = Calendar,
|
||||
options_class = CalendarOptions,
|
||||
modes = MODE_GUI | MODE_BKI | MODE_CLI,
|
||||
modes = PluginManager.REPORT_MODE_GUI | \
|
||||
PluginManager.REPORT_MODE_BKI | \
|
||||
PluginManager.REPORT_MODE_CLI,
|
||||
translated_name = _("Calendar"),
|
||||
status = _("Stable"),
|
||||
author_name = "Douglas S. Blank",
|
||||
@@ -937,7 +938,9 @@ pmgr.register_report(
|
||||
category = CATEGORY_TEXT,
|
||||
report_class = CalendarReport,
|
||||
options_class = CalendarReportOptions,
|
||||
modes = MODE_GUI | MODE_BKI | MODE_CLI,
|
||||
modes = PluginManager.REPORT_MODE_GUI | \
|
||||
PluginManager.REPORT_MODE_BKI | \
|
||||
PluginManager.REPORT_MODE_CLI,
|
||||
translated_name = _("Birthday and Anniversary Report"),
|
||||
status = _("Stable"),
|
||||
author_name = "Douglas S. Blank",
|
||||
|
||||
@@ -49,7 +49,8 @@ import GrampsDisplay
|
||||
import ManagedWindow
|
||||
|
||||
from QuestionDialog import OkDialog
|
||||
from PluginUtils import Tool, PluginManager
|
||||
from PluginUtils import Tool
|
||||
from gen.plug import PluginManager
|
||||
from TransUtils import sgettext as _
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
@@ -286,7 +287,7 @@ pmgr.register_tool(
|
||||
category = Tool.TOOL_DBPROC,
|
||||
tool_class = ChangeNames,
|
||||
options_class = ChangeNamesOptions,
|
||||
modes = Tool.MODE_GUI,
|
||||
modes = PluginManager.TOOL_MODE_GUI,
|
||||
translated_name = _("Fix Capitalization of Family Names"),
|
||||
status = _("Stable"),
|
||||
author_name = "Donald N. Allingham",
|
||||
|
||||
@@ -49,7 +49,8 @@ import ManagedWindow
|
||||
import AutoComp
|
||||
from gen.lib import EventType
|
||||
from QuestionDialog import OkDialog
|
||||
from PluginUtils import Tool, PluginManager
|
||||
from PluginUtils import Tool
|
||||
from gen.plug import PluginManager
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
@@ -202,7 +203,7 @@ pmgr.register_tool(
|
||||
category = Tool.TOOL_DBPROC,
|
||||
tool_class = ChangeTypes,
|
||||
options_class = ChangeTypesOptions,
|
||||
modes = Tool.MODE_GUI | Tool.MODE_CLI,
|
||||
modes = PluginManager.TOOL_MODE_GUI | PluginManager.TOOL_MODE_CLI,
|
||||
translated_name = _("Rename Event Types"),
|
||||
status = _("Stable"),
|
||||
author_name = "Donald N. Allingham",
|
||||
|
||||
@@ -60,7 +60,8 @@ import Utils
|
||||
#import const
|
||||
import ManagedWindow
|
||||
|
||||
from PluginUtils import Tool, PluginManager
|
||||
from PluginUtils import Tool
|
||||
from gen.plug import PluginManager
|
||||
from QuestionDialog import OkDialog, MissingMediaDialog
|
||||
from BasicUtils import name_displayer as _nd
|
||||
|
||||
@@ -1514,7 +1515,7 @@ pmgr.register_tool(
|
||||
category = Tool.TOOL_DBFIX,
|
||||
tool_class = Check,
|
||||
options_class = CheckOptions,
|
||||
modes = Tool.MODE_GUI | Tool.MODE_CLI,
|
||||
modes = PluginManager.TOOL_MODE_GUI | PluginManager.TOOL_MODE_CLI,
|
||||
translated_name = _("Check and Repair Database"),
|
||||
status = _("Stable"),
|
||||
author_name = "Donald N. Allingham",
|
||||
|
||||
@@ -38,7 +38,8 @@ from gettext import gettext as _
|
||||
# GRAMPS modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from PluginUtils import Tool, PluginManager
|
||||
from PluginUtils import Tool
|
||||
from gen.plug import PluginManager
|
||||
from ReportBase import CATEGORY_BOOK, CATEGORY_WEB
|
||||
from ReportBase._CommandLineReport import CommandLineReport
|
||||
|
||||
@@ -236,7 +237,7 @@ if __debug__:
|
||||
category = Tool.TOOL_DEBUG,
|
||||
tool_class = CmdRef,
|
||||
options_class = CmdRefOptions,
|
||||
modes = Tool.MODE_GUI | Tool.MODE_CLI,
|
||||
modes = PluginManager.TOOL_MODE_GUI | PluginManager.TOOL_MODE_CLI,
|
||||
translated_name = _("Generate Commandline Plugin Reference"),
|
||||
status = _("Stable"),
|
||||
author_name = "Martin Hawlisch",
|
||||
|
||||
@@ -41,9 +41,9 @@ from gettext import gettext as _
|
||||
# gramps modules
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
from gen.plug.menu import TextOption
|
||||
from ReportBase import Report, MenuReportOptions, CATEGORY_TEXT, MODE_BKI
|
||||
from ReportBase import Report, MenuReportOptions, CATEGORY_TEXT
|
||||
import BaseDoc
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
@@ -166,6 +166,6 @@ pmgr.register_report(
|
||||
category = CATEGORY_TEXT,
|
||||
report_class = CustomText,
|
||||
options_class = CustomTextOptions,
|
||||
modes = MODE_BKI,
|
||||
modes = PluginManager.REPORT_MODE_BKI,
|
||||
translated_name = _("Custom Text"),
|
||||
)
|
||||
|
||||
@@ -43,7 +43,8 @@ from gettext import gettext as _
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import gen.lib
|
||||
from PluginUtils import Tool, PluginManager
|
||||
from PluginUtils import Tool
|
||||
from gen.plug import PluginManager
|
||||
import Utils
|
||||
from QuestionDialog import QuestionDialog
|
||||
from DateHandler import parser as _dp
|
||||
@@ -234,7 +235,7 @@ pmgr.register_tool(
|
||||
category = Tool.TOOL_DEBUG,
|
||||
tool_class = DateParserDisplayTest,
|
||||
options_class = Tool.ToolOptions,
|
||||
modes = Tool.MODE_GUI | Tool.MODE_CLI,
|
||||
modes = PluginManager.TOOL_MODE_GUI | PluginManager.TOOL_MODE_CLI,
|
||||
translated_name = _("Check Localized Date Displayer and Parser"),
|
||||
status = _("Beta"),
|
||||
author_name = "Martin Hawlisch",
|
||||
|
||||
@@ -44,7 +44,8 @@ from gtk import glade
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
from BasicUtils import name_displayer
|
||||
from PluginUtils import Tool, PluginManager
|
||||
from PluginUtils import Tool
|
||||
from gen.plug import PluginManager
|
||||
import GrampsDisplay
|
||||
import ManagedWindow
|
||||
from TransUtils import sgettext as _
|
||||
@@ -164,7 +165,7 @@ pmgr.register_tool(
|
||||
category = Tool.TOOL_ANAL,
|
||||
tool_class = DesBrowse,
|
||||
options_class = DesBrowseOptions,
|
||||
modes = Tool.MODE_GUI,
|
||||
modes = PluginManager.TOOL_MODE_GUI,
|
||||
translated_name = _("Interactive Descendant Browser"),
|
||||
status = _("Stable"),
|
||||
author_name = "Donald N. Allingham",
|
||||
|
||||
@@ -35,10 +35,9 @@ from gettext import gettext as _
|
||||
# GRAMPS modules
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
from gen.plug.menu import NumberOption, PersonOption
|
||||
from ReportBase import Report, ReportUtils, MenuReportOptions, \
|
||||
CATEGORY_TEXT, MODE_GUI, MODE_BKI, MODE_CLI
|
||||
from ReportBase import Report, ReportUtils, MenuReportOptions, CATEGORY_TEXT
|
||||
import BaseDoc
|
||||
import Sort
|
||||
from BasicUtils import name_displayer
|
||||
@@ -252,7 +251,9 @@ pmgr.register_report(
|
||||
category = CATEGORY_TEXT,
|
||||
report_class = DescendantReport,
|
||||
options_class = DescendantOptions,
|
||||
modes = MODE_GUI | MODE_BKI | MODE_CLI,
|
||||
modes = PluginManager.REPORT_MODE_GUI | \
|
||||
PluginManager.REPORT_MODE_BKI | \
|
||||
PluginManager.REPORT_MODE_CLI,
|
||||
translated_name = _("Descendant Report"),
|
||||
status = _("Stable"),
|
||||
description = _("Produces a list of descendants of the active person"),
|
||||
|
||||
@@ -29,10 +29,9 @@
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
from BasicUtils import name_displayer
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
from gen.plug.menu import TextOption, NumberOption, BooleanOption, PersonOption
|
||||
from ReportBase import Report, MenuReportOptions, \
|
||||
ReportUtils, CATEGORY_DRAW, MODE_GUI, MODE_BKI, MODE_CLI
|
||||
from ReportBase import Report, MenuReportOptions, ReportUtils, CATEGORY_DRAW
|
||||
from SubstKeywords import SubstKeywords
|
||||
from gettext import gettext as _
|
||||
import BaseDoc
|
||||
@@ -485,7 +484,9 @@ pmgr.register_report(
|
||||
category = CATEGORY_DRAW,
|
||||
report_class = DescendTree,
|
||||
options_class = DescendTreeOptions,
|
||||
modes = MODE_GUI | MODE_BKI | MODE_CLI,
|
||||
modes = PluginManager.REPORT_MODE_GUI | \
|
||||
PluginManager.REPORT_MODE_BKI | \
|
||||
PluginManager.REPORT_MODE_CLI,
|
||||
translated_name = _("Descendant Tree"),
|
||||
status = _("Stable"),
|
||||
author_name = "Donald N. Allingham",
|
||||
|
||||
@@ -38,10 +38,9 @@ from gettext import gettext as _
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
import gen.lib
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
from gen.plug.menu import BooleanOption, NumberOption, PersonOption
|
||||
from ReportBase import Report, ReportUtils, MenuReportOptions, \
|
||||
CATEGORY_TEXT, MODE_GUI, MODE_BKI, MODE_CLI
|
||||
from ReportBase import Report, ReportUtils, MenuReportOptions, CATEGORY_TEXT
|
||||
from ReportBase import Bibliography, Endnotes
|
||||
import BaseDoc
|
||||
import DateHandler
|
||||
@@ -882,7 +881,9 @@ pmgr.register_report(
|
||||
category = CATEGORY_TEXT,
|
||||
report_class = DetAncestorReport,
|
||||
options_class = DetAncestorOptions,
|
||||
modes = MODE_GUI | MODE_BKI | MODE_CLI,
|
||||
modes = PluginManager.REPORT_MODE_GUI | \
|
||||
PluginManager.REPORT_MODE_BKI | \
|
||||
PluginManager.REPORT_MODE_CLI,
|
||||
translated_name = _("Detailed Ancestral Report"),
|
||||
status=(_("Stable")),
|
||||
description= _("Produces a detailed ancestral report"),
|
||||
|
||||
@@ -39,10 +39,9 @@ from gettext import gettext as _
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
import gen.lib
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
from gen.plug.menu import BooleanOption, NumberOption, PersonOption
|
||||
from ReportBase import Report, ReportUtils, MenuReportOptions, \
|
||||
CATEGORY_TEXT, MODE_GUI, MODE_BKI, MODE_CLI
|
||||
from ReportBase import Report, ReportUtils, MenuReportOptions, CATEGORY_TEXT
|
||||
from ReportBase import Bibliography, Endnotes
|
||||
import BaseDoc
|
||||
import DateHandler
|
||||
@@ -872,7 +871,9 @@ pmgr.register_report(
|
||||
category = CATEGORY_TEXT,
|
||||
report_class = DetDescendantReport,
|
||||
options_class = DetDescendantOptions,
|
||||
modes = MODE_GUI | MODE_BKI | MODE_CLI,
|
||||
modes = PluginManager.REPORT_MODE_GUI | \
|
||||
PluginManager.REPORT_MODE_BKI | \
|
||||
PluginManager.REPORT_MODE_CLI,
|
||||
translated_name = _("Detailed Descendant Report"),
|
||||
status = _("Stable"),
|
||||
description = _("Produces a detailed descendant report"),
|
||||
|
||||
@@ -30,7 +30,8 @@ import gtk
|
||||
import ListModel
|
||||
import ManagedWindow
|
||||
|
||||
from PluginUtils import Tool, PluginManager
|
||||
from PluginUtils import Tool
|
||||
from gen.plug import PluginManager
|
||||
_GENDER = [ _(u'female'), _(u'male'), _(u'unknown') ]
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
@@ -115,7 +116,7 @@ if __debug__:
|
||||
category = Tool.TOOL_DEBUG,
|
||||
tool_class = DumpGenderStats,
|
||||
options_class = DumpGenderStatsOptions,
|
||||
modes = Tool.MODE_GUI | Tool.MODE_CLI,
|
||||
modes = PluginManager.TOOL_MODE_GUI | PluginManager.TOOL_MODE_CLI,
|
||||
translated_name = _("Dump Gender Statistics"),
|
||||
description = _("Will dump the statistics for the gender guessing "
|
||||
"from the first name.")
|
||||
|
||||
@@ -34,10 +34,9 @@ from gettext import gettext as _
|
||||
# gramps modules
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
from gen.plug.menu import PersonOption
|
||||
from ReportBase import Report, ReportUtils, MenuReportOptions, \
|
||||
CATEGORY_TEXT, MODE_GUI, MODE_BKI, MODE_CLI
|
||||
from ReportBase import Report, ReportUtils, MenuReportOptions, CATEGORY_TEXT
|
||||
import BaseDoc
|
||||
from BasicUtils import name_displayer
|
||||
import DateHandler
|
||||
@@ -318,7 +317,9 @@ pmgr.register_report(
|
||||
category = CATEGORY_TEXT,
|
||||
report_class = EndOfLineReport,
|
||||
options_class = EndOfLineOptions,
|
||||
modes = MODE_GUI | MODE_BKI | MODE_CLI,
|
||||
modes = PluginManager.REPORT_MODE_GUI | \
|
||||
PluginManager.REPORT_MODE_BKI | \
|
||||
PluginManager.REPORT_MODE_CLI,
|
||||
translated_name = _("End of Line Report"),
|
||||
status = _("Stable"),
|
||||
description = _("Produces a textual end of line report"),
|
||||
|
||||
+3
-2
@@ -46,7 +46,8 @@ from gtk import glade
|
||||
# GRAMPS modules
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
from PluginUtils import Tool, PluginManager
|
||||
from PluginUtils import Tool
|
||||
from gen.plug import PluginManager
|
||||
import ManagedWindow
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
@@ -126,7 +127,7 @@ if __debug__:
|
||||
category = Tool.TOOL_DEBUG,
|
||||
tool_class = Eval,
|
||||
options_class = EvalOptions,
|
||||
modes = Tool.MODE_GUI,
|
||||
modes = PluginManager.TOOL_MODE_GUI,
|
||||
translated_name = _("Python Evaluation Window"),
|
||||
status = _("Stable"),
|
||||
author_name = "Donald N. Allingham",
|
||||
|
||||
@@ -52,7 +52,8 @@ import const
|
||||
import Errors
|
||||
import DateHandler
|
||||
from QuestionDialog import WarningDialog
|
||||
from PluginUtils import Tool, PluginManager
|
||||
from PluginUtils import Tool
|
||||
from gen.plug import PluginManager
|
||||
from ReportBase import ReportUtils
|
||||
import GrampsDisplay
|
||||
import ManagedWindow
|
||||
@@ -462,7 +463,7 @@ pmgr.register_tool(
|
||||
category = Tool.TOOL_ANAL,
|
||||
tool_class = EventComparison,
|
||||
options_class = EventComparisonOptions,
|
||||
modes = Tool.MODE_GUI,
|
||||
modes = PluginManager.TOOL_MODE_GUI,
|
||||
translated_name = _("Compare Individual Events"),
|
||||
status = _("Stable"),
|
||||
author_name = "Donald N. Allingham",
|
||||
|
||||
@@ -45,7 +45,8 @@ import ManagedWindow
|
||||
import gen.lib
|
||||
import Utils
|
||||
|
||||
from PluginUtils import Tool, PluginManager
|
||||
from PluginUtils import Tool
|
||||
from gen.plug import PluginManager
|
||||
from BasicUtils import name_displayer
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
@@ -158,7 +159,7 @@ pmgr.register_tool(
|
||||
category = Tool.TOOL_DBPROC,
|
||||
tool_class = EventNames,
|
||||
options_class = EventNamesOptions,
|
||||
modes = Tool.MODE_GUI,
|
||||
modes = PluginManager.TOOL_MODE_GUI,
|
||||
translated_name = _("Extract Event Descriptions from Event Data"),
|
||||
status = _("Stable"),
|
||||
author_name = "Donald N. Allingham",
|
||||
|
||||
@@ -59,7 +59,7 @@ from Filters import GenericFilter, Rules, build_filter_menu
|
||||
import Utils
|
||||
import Errors
|
||||
from QuestionDialog import ErrorDialog
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
import DateHandler
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
@@ -59,7 +59,7 @@ import Utils
|
||||
from gen.lib import Date, EventType
|
||||
import Errors
|
||||
from QuestionDialog import ErrorDialog
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
||||
@@ -56,7 +56,7 @@ from Filters import GenericFilter, Rules, build_filter_menu
|
||||
from gen.lib import Date
|
||||
import Errors
|
||||
from QuestionDialog import ErrorDialog
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
||||
@@ -50,7 +50,8 @@ import gobject
|
||||
import ManagedWindow
|
||||
import GrampsDisplay
|
||||
|
||||
from PluginUtils import Tool, PluginManager
|
||||
from PluginUtils import Tool
|
||||
from gen.plug import PluginManager
|
||||
import Utils
|
||||
|
||||
CITY_STATE_ZIP = re.compile("((\w|\s)+)\s*,\s*((\w|\s)+)\s*(,\s*((\d|-)+))", re.UNICODE)
|
||||
@@ -643,7 +644,7 @@ pmgr.register_tool(
|
||||
category = Tool.TOOL_DBPROC,
|
||||
tool_class = ExtractCity,
|
||||
options_class = ExtractCityOptions,
|
||||
modes = Tool.MODE_GUI,
|
||||
modes = PluginManager.TOOL_MODE_GUI,
|
||||
translated_name = _("Extract Place Data from a Place Title"),
|
||||
status = _("Stable"),
|
||||
author_name = "Donald N. Allingham",
|
||||
|
||||
@@ -29,10 +29,9 @@
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
import gen.lib
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
from gen.plug.menu import BooleanOption, FamilyOption
|
||||
from ReportBase import Report, ReportUtils, MenuReportOptions, \
|
||||
CATEGORY_TEXT, MODE_GUI, MODE_BKI, MODE_CLI
|
||||
from ReportBase import Report, ReportUtils, MenuReportOptions, CATEGORY_TEXT
|
||||
import BaseDoc
|
||||
import DateHandler
|
||||
from TransUtils import sgettext as _
|
||||
@@ -769,7 +768,9 @@ pmgr.register_report(
|
||||
category = CATEGORY_TEXT,
|
||||
report_class = FamilyGroup,
|
||||
options_class = FamilyGroupOptions,
|
||||
modes = MODE_GUI | MODE_BKI | MODE_CLI,
|
||||
modes = PluginManager.REPORT_MODE_GUI | \
|
||||
PluginManager.REPORT_MODE_BKI | \
|
||||
PluginManager.REPORT_MODE_CLI,
|
||||
translated_name = _("Family Group Report"),
|
||||
status = _("Stable"),
|
||||
author_name = "Donald N. Allingham",
|
||||
|
||||
@@ -34,10 +34,9 @@ from gettext import gettext as _
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
import BaseDoc
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
from gen.plug.menu import EnumeratedListOption, NumberOption, PersonOption
|
||||
from ReportBase import Report, ReportUtils, MenuReportOptions, CATEGORY_DRAW, \
|
||||
MODE_GUI, MODE_BKI, MODE_CLI
|
||||
from ReportBase import Report, ReportUtils, MenuReportOptions, CATEGORY_DRAW
|
||||
from SubstKeywords import SubstKeywords
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
@@ -439,7 +438,9 @@ pmgr.register_report(
|
||||
category = CATEGORY_DRAW,
|
||||
report_class = FanChart,
|
||||
options_class = FanChartOptions,
|
||||
modes = MODE_GUI | MODE_BKI | MODE_CLI,
|
||||
modes = PluginManager.REPORT_MODE_GUI | \
|
||||
PluginManager.REPORT_MODE_BKI | \
|
||||
PluginManager.REPORT_MODE_CLI,
|
||||
translated_name = _("Fan Chart"),
|
||||
status = _("Stable"),
|
||||
author_name = "Donald N. Allingham",
|
||||
|
||||
@@ -24,7 +24,7 @@ Display filtered data
|
||||
"""
|
||||
|
||||
from Simple import SimpleAccess, SimpleDoc, SimpleTable
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
from Utils import media_path_full
|
||||
from QuickReports import run_quick_report_by_name_direct
|
||||
from gen.lib import Person
|
||||
|
||||
@@ -52,7 +52,8 @@ import Errors
|
||||
from Merge import PersonCompare
|
||||
import GrampsDisplay
|
||||
import ManagedWindow
|
||||
from PluginUtils import Tool, PluginManager
|
||||
from PluginUtils import Tool
|
||||
from gen.plug import PluginManager
|
||||
from QuestionDialog import ErrorDialog, RunDatabaseRepair
|
||||
from TransUtils import sgettext as _
|
||||
#-------------------------------------------------------------------------
|
||||
@@ -696,7 +697,7 @@ pmgr.register_tool(
|
||||
category = Tool.TOOL_DBPROC,
|
||||
tool_class = Merge,
|
||||
options_class = MergeOptions,
|
||||
modes = Tool.MODE_GUI,
|
||||
modes = PluginManager.TOOL_MODE_GUI,
|
||||
translated_name = _("Find Possible Duplicate People"),
|
||||
status = _("Stable"),
|
||||
author_name = "Donald N. Allingham",
|
||||
|
||||
@@ -49,9 +49,8 @@ import gen.lib
|
||||
import Utils
|
||||
import ThumbNails
|
||||
from DateHandler import displayer as _dd
|
||||
from ReportBase import Report, ReportUtils, MenuReportOptions, \
|
||||
CATEGORY_GRAPHVIZ, MODE_GUI
|
||||
from PluginUtils import PluginManager
|
||||
from ReportBase import Report, ReportUtils, MenuReportOptions, CATEGORY_GRAPHVIZ
|
||||
from gen.plug import PluginManager
|
||||
from gen.plug.menu import NumberOption, ColorOption, BooleanOption, \
|
||||
EnumeratedListOption, PersonListOption, \
|
||||
SurnameColorOption
|
||||
@@ -1028,7 +1027,8 @@ pmgr.register_report(
|
||||
category = CATEGORY_GRAPHVIZ,
|
||||
report_class = FamilyLinesReport,
|
||||
options_class = FamilyLinesOptions,
|
||||
modes = MODE_GUI,
|
||||
modes = PluginManager.REPORT_MODE_GUI | \
|
||||
PluginManager.REPORT_MODE_CLI,
|
||||
status = _("Stable"),
|
||||
author_name = "Stephane Charette",
|
||||
author_email = "stephanecharette@gmail.com",
|
||||
|
||||
@@ -36,11 +36,10 @@ from gettext import gettext as _
|
||||
# GRAMPS modules
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
from gen.plug.menu import PersonOption, BooleanOption, NumberOption, \
|
||||
EnumeratedListOption
|
||||
from ReportBase import Report, ReportUtils, MenuReportOptions, \
|
||||
MODE_GUI, MODE_CLI, CATEGORY_GRAPHVIZ
|
||||
from ReportBase import Report, ReportUtils, MenuReportOptions, CATEGORY_GRAPHVIZ
|
||||
from BasicUtils import name_displayer
|
||||
import DateHandler
|
||||
|
||||
@@ -299,7 +298,8 @@ pmgr.register_report(
|
||||
category = CATEGORY_GRAPHVIZ,
|
||||
report_class = HourGlassReport,
|
||||
options_class = HourGlassOptions,
|
||||
modes = MODE_GUI | MODE_CLI,
|
||||
modes = PluginManager.REPORT_MODE_GUI | \
|
||||
PluginManager.REPORT_MODE_CLI,
|
||||
translated_name = _("Hourglass Graph"),
|
||||
status = _("Stable"),
|
||||
author_name = "Brian G. Matherly",
|
||||
|
||||
+12
-12
@@ -43,11 +43,10 @@ from TransUtils import sgettext as _
|
||||
# GRAMPS modules
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
from gen.plug.menu import BooleanOption, EnumeratedListOption, FilterOption, \
|
||||
PersonOption
|
||||
from ReportBase import Report, ReportUtils, MenuReportOptions, \
|
||||
MODE_GUI, MODE_CLI, CATEGORY_GRAPHVIZ
|
||||
from ReportBase import Report, ReportUtils, MenuReportOptions, CATEGORY_GRAPHVIZ
|
||||
from BasicUtils import name_displayer
|
||||
import DateHandler
|
||||
import gen.lib
|
||||
@@ -561,16 +560,17 @@ class RelGraphOptions(MenuReportOptions):
|
||||
#------------------------------------------------------------------------
|
||||
pmgr = PluginManager.get_instance()
|
||||
pmgr.register_report(
|
||||
name = 'rel_graph',
|
||||
category = CATEGORY_GRAPHVIZ,
|
||||
report_class = RelGraphReport,
|
||||
options_class = RelGraphOptions,
|
||||
modes = MODE_GUI | MODE_CLI,
|
||||
name = 'rel_graph',
|
||||
category = CATEGORY_GRAPHVIZ,
|
||||
report_class = RelGraphReport,
|
||||
options_class = RelGraphOptions,
|
||||
modes = PluginManager.REPORT_MODE_GUI | \
|
||||
PluginManager.REPORT_MODE_CLI,
|
||||
translated_name = _("Relationship Graph"),
|
||||
status = _("Stable"),
|
||||
description = _("Produces relationship graphs using Graphviz"),
|
||||
author_name = "Brian G. Matherly",
|
||||
author_email = "brian@gramps-project.org"
|
||||
status = _("Stable"),
|
||||
description = _("Produces relationship graphs using Graphviz"),
|
||||
author_name = "Brian G. Matherly",
|
||||
author_email = "brian@gramps-project.org"
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ import gtk
|
||||
import gen.lib
|
||||
from QuestionDialog import ErrorDialog
|
||||
from DateHandler import parser as _dp
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
from Utils import gender as gender_map
|
||||
from Utils import ProgressMeter
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ import Errors
|
||||
import gen.lib
|
||||
import const
|
||||
from QuestionDialog import ErrorDialog
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
from htmlentitydefs import name2codepoint
|
||||
|
||||
_date_parse = re.compile('([kmes~?<>]+)?([0-9/]+)([J|H|F])?(\.\.)?([0-9/]+)?([J|H|F])?')
|
||||
|
||||
@@ -54,7 +54,7 @@ import Utils
|
||||
import gen.lib
|
||||
import const
|
||||
from QuestionDialog import ErrorDialog
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
|
||||
|
||||
class ProgenError(Exception):
|
||||
|
||||
@@ -56,7 +56,7 @@ import Errors
|
||||
import gen.lib
|
||||
import const
|
||||
from QuestionDialog import ErrorDialog
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
||||
@@ -37,10 +37,9 @@ from gettext import gettext as _
|
||||
import gen.lib
|
||||
import BaseDoc
|
||||
import DateHandler
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
from gen.plug.menu import BooleanOption, FilterOption, PersonOption
|
||||
from ReportBase import Report, ReportUtils, MenuReportOptions, \
|
||||
CATEGORY_TEXT, MODE_GUI, MODE_BKI, MODE_CLI
|
||||
from ReportBase import Report, ReportUtils, MenuReportOptions, CATEGORY_TEXT
|
||||
from ReportBase import Bibliography, Endnotes
|
||||
from BasicUtils import name_displayer as _nd
|
||||
from Utils import media_path_full
|
||||
@@ -639,7 +638,9 @@ pmgr.register_report(
|
||||
category = CATEGORY_TEXT,
|
||||
report_class = IndivCompleteReport,
|
||||
options_class = IndivCompleteOptions,
|
||||
modes = MODE_GUI | MODE_BKI | MODE_CLI,
|
||||
modes = PluginManager.REPORT_MODE_GUI | \
|
||||
PluginManager.REPORT_MODE_BKI | \
|
||||
PluginManager.REPORT_MODE_CLI,
|
||||
translated_name = _("Complete Individual Report"),
|
||||
status = _("Stable"),
|
||||
author_name = "Donald N. Allingham",
|
||||
|
||||
@@ -35,10 +35,9 @@ from string import capitalize
|
||||
# gramps modules
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
from gen.plug.menu import NumberOption, BooleanOption, PersonOption
|
||||
from ReportBase import Report, ReportUtils, MenuReportOptions, \
|
||||
CATEGORY_TEXT, MODE_GUI, MODE_BKI, MODE_CLI
|
||||
from ReportBase import Report, ReportUtils, MenuReportOptions, CATEGORY_TEXT
|
||||
import BaseDoc
|
||||
from BasicUtils import name_displayer
|
||||
import DateHandler
|
||||
@@ -403,7 +402,9 @@ pmgr.register_report(
|
||||
category = CATEGORY_TEXT,
|
||||
report_class = KinshipReport,
|
||||
options_class = KinshipOptions,
|
||||
modes = MODE_GUI | MODE_BKI | MODE_CLI,
|
||||
modes = PluginManager.REPORT_MODE_GUI | \
|
||||
PluginManager.REPORT_MODE_BKI | \
|
||||
PluginManager.REPORT_MODE_CLI,
|
||||
translated_name = _("Kinship Report"),
|
||||
status = _("Stable"),
|
||||
description = _("Produces a textual report of kinship for a given person"),
|
||||
|
||||
+3
-2
@@ -47,7 +47,8 @@ import gc
|
||||
# GRAMPS modules
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
from PluginUtils import Tool, PluginManager
|
||||
from PluginUtils import Tool
|
||||
from gen.plug import PluginManager
|
||||
import ManagedWindow
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
@@ -126,7 +127,7 @@ if __debug__:
|
||||
category = Tool.TOOL_DEBUG,
|
||||
tool_class = Leak,
|
||||
options_class = LeakOptions,
|
||||
modes = Tool.MODE_GUI,
|
||||
modes = PluginManager.TOOL_MODE_GUI,
|
||||
translated_name = _("Show Uncollected Objects"),
|
||||
status = _("Stable"),
|
||||
author_name = "Donald N. Allingham",
|
||||
|
||||
@@ -34,10 +34,9 @@ from gettext import gettext as _
|
||||
# GRAMPS modules
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
from gen.plug.menu import EnumeratedListOption
|
||||
from ReportBase import Report, ReportUtils, MenuReportOptions, \
|
||||
CATEGORY_TEXT, MODE_GUI, MODE_BKI, MODE_CLI
|
||||
from ReportBase import Report, ReportUtils, MenuReportOptions, CATEGORY_TEXT
|
||||
import BaseDoc
|
||||
from gen.lib import MarkerType
|
||||
from Filters import GenericFilterFactory, Rules
|
||||
@@ -522,7 +521,9 @@ pmgr.register_report(
|
||||
category = CATEGORY_TEXT,
|
||||
report_class = MarkerReport,
|
||||
options_class = MarkerOptions,
|
||||
modes = MODE_GUI | MODE_BKI | MODE_CLI,
|
||||
modes = PluginManager.REPORT_MODE_GUI | \
|
||||
PluginManager.REPORT_MODE_BKI | \
|
||||
PluginManager.REPORT_MODE_CLI,
|
||||
translated_name = _("Marker Report"),
|
||||
status = _("Stable"),
|
||||
description = _("Produces a list of people with a specified marker"),
|
||||
|
||||
@@ -51,7 +51,8 @@ import Assistant
|
||||
import Errors
|
||||
from gen.lib import MediaObject
|
||||
from BasicUtils import UpdateCallback
|
||||
from PluginUtils import Tool, PluginManager
|
||||
from PluginUtils import Tool
|
||||
from gen.plug import PluginManager
|
||||
from Utils import media_path_full, relative_path, media_path
|
||||
from TransUtils import sgettext as _
|
||||
|
||||
@@ -591,7 +592,7 @@ pmgr.register_tool(
|
||||
category = Tool.TOOL_UTILS,
|
||||
tool_class = MediaMan,
|
||||
options_class = MediaManOptions,
|
||||
modes = Tool.MODE_GUI,
|
||||
modes = PluginManager.TOOL_MODE_GUI,
|
||||
translated_name = _("Media Manager"),
|
||||
status = _("Beta"),
|
||||
author_name = "Alex Roitman",
|
||||
|
||||
@@ -73,12 +73,12 @@ import gen.lib
|
||||
import const
|
||||
from GrampsCfg import get_researcher
|
||||
import Sort
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
from gen.plug.menu import PersonOption, NumberOption, StringOption, \
|
||||
BooleanOption, EnumeratedListOption, FilterOption, \
|
||||
NoteOption, MediaOption, DestinationOption
|
||||
from ReportBase import (Report, ReportUtils, MenuReportOptions, CATEGORY_WEB,
|
||||
MODE_GUI, MODE_CLI, Bibliography)
|
||||
Bibliography)
|
||||
import Utils
|
||||
import ThumbNails
|
||||
import ImgManip
|
||||
@@ -3321,7 +3321,7 @@ pmgr.register_report(
|
||||
category = CATEGORY_WEB,
|
||||
report_class = NavWebReport,
|
||||
options_class = NavWebOptions,
|
||||
modes = MODE_GUI | MODE_CLI,
|
||||
modes = PluginManager.REPORT_MODE_GUI | PluginManager.REPORT_MODE_CLI,
|
||||
translated_name = _("Narrated Web Site"),
|
||||
status = _("Stable"),
|
||||
author_name = "Donald N. Allingham",
|
||||
|
||||
@@ -43,7 +43,8 @@ import gobject
|
||||
# GRAMPS modules
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
from PluginUtils import PluginManager, Tool
|
||||
from PluginUtils import Tool
|
||||
from gen.plug import PluginManager
|
||||
from ReportBase import ReportUtils
|
||||
from Editors import EditPerson, EditFamily
|
||||
import ManagedWindow
|
||||
@@ -432,7 +433,7 @@ pmgr.register_tool(
|
||||
category = Tool.TOOL_UTILS,
|
||||
tool_class = NotRelated,
|
||||
options_class = NotRelatedOptions,
|
||||
modes = Tool.MODE_GUI,
|
||||
modes = PluginManager.TOOL_MODE_GUI,
|
||||
translated_name = _("Not Related"),
|
||||
status = _("Stable"),
|
||||
author_name = "Stephane Charette",
|
||||
|
||||
@@ -38,10 +38,9 @@ import math
|
||||
# GRAMPS modules
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
from gen.plug.menu import PersonOption
|
||||
from ReportBase import Report, MenuReportOptions, ReportUtils, \
|
||||
CATEGORY_TEXT, MODE_GUI, MODE_BKI, MODE_CLI
|
||||
from ReportBase import Report, MenuReportOptions, ReportUtils, CATEGORY_TEXT
|
||||
from BasicUtils import name_displayer
|
||||
import BaseDoc
|
||||
|
||||
@@ -196,7 +195,9 @@ pmgr.register_report(
|
||||
category = CATEGORY_TEXT,
|
||||
report_class = NumberOfAncestorsReport,
|
||||
options_class = NumberOfAncestorsOptions,
|
||||
modes = MODE_GUI | MODE_BKI | MODE_CLI,
|
||||
modes = PluginManager.REPORT_MODE_GUI | \
|
||||
PluginManager.REPORT_MODE_BKI | \
|
||||
PluginManager.REPORT_MODE_CLI,
|
||||
translated_name = _("Number of Ancestors Report"),
|
||||
status = _("Stable"),
|
||||
description = _("Counts number of ancestors of selected person"),
|
||||
|
||||
@@ -25,7 +25,7 @@ Display all events on a particular day.
|
||||
|
||||
from Simple import SimpleAccess, SimpleDoc, SimpleTable
|
||||
from gettext import gettext as _
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
from ReportBase import CATEGORY_QR_EVENT
|
||||
import gen.lib
|
||||
|
||||
|
||||
@@ -48,7 +48,8 @@ import GrampsCfg
|
||||
import GrampsDisplay
|
||||
from widgets import MonitoredEntry
|
||||
import ManagedWindow
|
||||
from PluginUtils import Tool, PluginManager
|
||||
from PluginUtils import Tool
|
||||
from gen.plug import PluginManager
|
||||
from TransUtils import sgettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
@@ -196,8 +197,7 @@ pmgr.register_tool(
|
||||
category = Tool.TOOL_DBPROC,
|
||||
tool_class = OwnerEditor,
|
||||
options_class = OwnerEditorOptions,
|
||||
modes = Tool.MODE_GUI,
|
||||
# translated_name = _("Database Owner Information"),
|
||||
modes = PluginManager.TOOL_MODE_GUI,
|
||||
translated_name = _("Edit Database Owner Information"),
|
||||
status = _("Beta"),
|
||||
author_name = "Zsolt Foldvari",
|
||||
|
||||
@@ -46,7 +46,8 @@ import gobject
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import Utils
|
||||
from PluginUtils import Tool, PluginManager
|
||||
from PluginUtils import Tool
|
||||
from gen.plug import PluginManager
|
||||
from QuestionDialog import OkDialog
|
||||
import ManagedWindow
|
||||
import GrampsDisplay
|
||||
@@ -369,7 +370,7 @@ pmgr.register_tool(
|
||||
category = Tool.TOOL_DBPROC,
|
||||
tool_class = PatchNames,
|
||||
options_class = PatchNamesOptions,
|
||||
modes = Tool.MODE_GUI,
|
||||
modes = PluginManager.TOOL_MODE_GUI,
|
||||
translated_name = _("Extract Information from Names"),
|
||||
status = _("Stable"),
|
||||
author_name = "Donald N. Allingham",
|
||||
|
||||
@@ -34,10 +34,9 @@ from gettext import gettext as _
|
||||
# gramps modules
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
from gen.plug.menu import FilterOption, PlaceListOption
|
||||
from ReportBase import Report, MenuReportOptions, \
|
||||
CATEGORY_TEXT, MODE_GUI, MODE_BKI, MODE_CLI
|
||||
from ReportBase import Report, MenuReportOptions, CATEGORY_TEXT
|
||||
import BaseDoc
|
||||
import DateHandler
|
||||
import Sort
|
||||
@@ -397,7 +396,9 @@ pmgr.register_report(
|
||||
category = CATEGORY_TEXT,
|
||||
report_class = PlaceReport,
|
||||
options_class = PlaceOptions,
|
||||
modes = MODE_GUI | MODE_BKI | MODE_CLI,
|
||||
modes = PluginManager.REPORT_MODE_GUI | \
|
||||
PluginManager.REPORT_MODE_BKI | \
|
||||
PluginManager.REPORT_MODE_CLI,
|
||||
translated_name = _("Place Report"),
|
||||
status = _("Stable"),
|
||||
description = _("Produces a textual place report"),
|
||||
|
||||
@@ -25,7 +25,7 @@ Run a query on the tables
|
||||
|
||||
from Simple import SimpleAccess, SimpleDoc, SimpleTable
|
||||
from gettext import gettext as _
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
import Utils
|
||||
from ReportBase import CATEGORY_QR_MISC
|
||||
import DateHandler
|
||||
|
||||
@@ -51,7 +51,7 @@ from QuestionDialog import ErrorDialog
|
||||
from Errors import HandleError
|
||||
from BasicUtils import UpdateCallback
|
||||
from BasicUtils import name_displayer
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
||||
@@ -57,7 +57,7 @@ import const
|
||||
from GrampsDbUtils import gramps_db_reader_factory
|
||||
from QuestionDialog import ErrorDialog, WarningDialog
|
||||
import Utils
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
||||
@@ -49,7 +49,8 @@ log = logging.getLogger(".Rebuild")
|
||||
# GRAMPS modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from PluginUtils import Tool, PluginManager
|
||||
from PluginUtils import Tool
|
||||
from gen.plug import PluginManager
|
||||
from QuestionDialog import OkDialog
|
||||
from BasicUtils import UpdateCallback
|
||||
|
||||
@@ -115,7 +116,7 @@ pmgr.register_tool(
|
||||
category = Tool.TOOL_DBFIX,
|
||||
tool_class = Rebuild,
|
||||
options_class = RebuildOptions,
|
||||
modes = Tool.MODE_GUI | Tool.MODE_CLI,
|
||||
modes = PluginManager.TOOL_MODE_GUI | PluginManager.TOOL_MODE_CLI,
|
||||
translated_name = _("Rebuild Secondary Indices"),
|
||||
status = _("Stable"),
|
||||
author_name = "Donald N. Allingham",
|
||||
|
||||
@@ -51,7 +51,8 @@ log = logging.getLogger(".RebuildRefMap")
|
||||
# GRAMPS modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from PluginUtils import Tool, PluginManager
|
||||
from PluginUtils import Tool
|
||||
from gen.plug import PluginManager
|
||||
from QuestionDialog import OkDialog
|
||||
from BasicUtils import UpdateCallback
|
||||
|
||||
@@ -117,7 +118,7 @@ pmgr.register_tool(
|
||||
category = Tool.TOOL_DBFIX,
|
||||
tool_class = RebuildRefMap,
|
||||
options_class = RebuildRefMapOptions,
|
||||
modes = Tool.MODE_GUI | Tool.MODE_CLI,
|
||||
modes = PluginManager.TOOL_MODE_GUI | PluginManager.TOOL_MODE_CLI,
|
||||
translated_name = _("Rebuild Reference Maps"),
|
||||
status= _("Stable"),
|
||||
author_name = "Alex Roitman",
|
||||
|
||||
@@ -28,7 +28,7 @@ from ReportBase import (CATEGORY_QR_SOURCE, CATEGORY_QR_PERSON,
|
||||
|
||||
from Simple import SimpleAccess, SimpleDoc, SimpleTable
|
||||
from gettext import gettext as _
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
|
||||
# mention so that will be translated for below
|
||||
[_('Person'), _('Family'), _('Event'), _('Source'),
|
||||
|
||||
@@ -49,7 +49,8 @@ import ManagedWindow
|
||||
from DisplayModels import PeopleModel
|
||||
|
||||
from QuestionDialog import ErrorDialog
|
||||
from PluginUtils import Tool, PluginManager
|
||||
from PluginUtils import Tool
|
||||
from gen.plug import PluginManager
|
||||
|
||||
column_names = [
|
||||
_('Name'),
|
||||
@@ -265,7 +266,7 @@ pmgr.register_tool(
|
||||
category = Tool.TOOL_UTILS,
|
||||
tool_class = RelCalc,
|
||||
options_class = RelCalcOptions,
|
||||
modes = Tool.MODE_GUI,
|
||||
modes = PluginManager.TOOL_MODE_GUI,
|
||||
translated_name = _("Relationship Calculator"),
|
||||
status = _("Stable"),
|
||||
author_name = "Donald N. Allingham",
|
||||
|
||||
@@ -59,7 +59,8 @@ import Errors
|
||||
import ManagedWindow
|
||||
from DateHandler import displayer as _dd
|
||||
from BasicUtils import UpdateCallback
|
||||
from PluginUtils import Tool, PluginManager
|
||||
from PluginUtils import Tool
|
||||
from gen.plug import PluginManager
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
@@ -491,7 +492,7 @@ pmgr.register_tool(
|
||||
category = Tool.TOOL_DBFIX,
|
||||
tool_class = RemoveUnused,
|
||||
options_class = CheckOptions,
|
||||
modes = Tool.MODE_GUI,
|
||||
modes = PluginManager.TOOL_MODE_GUI,
|
||||
translated_name = _("Remove Unused Objects"),
|
||||
status = _("Stable"),
|
||||
author_name = "Donald N. Allingham",
|
||||
|
||||
@@ -41,7 +41,8 @@ from gettext import gettext as _
|
||||
#------------------------------------------------------------------------
|
||||
import Utils
|
||||
import gen.lib
|
||||
from PluginUtils import Tool, PluginManager
|
||||
from PluginUtils import Tool
|
||||
from gen.plug import PluginManager
|
||||
|
||||
_findint = re.compile('^[^\d]*(\d+)[^\d]*')
|
||||
|
||||
@@ -234,7 +235,7 @@ pmgr.register_tool(
|
||||
category = Tool.TOOL_DBPROC,
|
||||
tool_class = ReorderIds,
|
||||
options_class = ReorderIdsOptions,
|
||||
modes = Tool.MODE_GUI | Tool.MODE_CLI,
|
||||
modes = PluginManager.TOOL_MODE_GUI | PluginManager.TOOL_MODE_CLI,
|
||||
translated_name = _("Reorder GRAMPS IDs"),
|
||||
status = _("Stable"),
|
||||
author_name = "Donald N. Allingham",
|
||||
|
||||
@@ -31,7 +31,7 @@ Display RepoRef for sources related to active repository
|
||||
|
||||
from Simple import SimpleAccess, SimpleDoc, SimpleTable
|
||||
from gettext import gettext as _
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
from ReportBase import CATEGORY_QR_REPOSITORY
|
||||
import gen.lib
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ Display a people who have a person's same surname
|
||||
|
||||
from Simple import SimpleAccess, SimpleDoc, SimpleTable
|
||||
from gettext import gettext as _
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
from ReportBase import CATEGORY_QR_PERSON
|
||||
from Filters.Rules import Rule
|
||||
from Filters import GenericFilterFactory
|
||||
|
||||
@@ -33,10 +33,10 @@ from TransUtils import sgettext as _
|
||||
# gramps modules
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
from gen.plug.menu import StringOption, MediaOption, NumberOption
|
||||
from Utils import media_path_full
|
||||
from ReportBase import Report, MenuReportOptions, CATEGORY_TEXT, MODE_BKI
|
||||
from ReportBase import Report, MenuReportOptions, CATEGORY_TEXT
|
||||
import BaseDoc
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
@@ -184,7 +184,7 @@ pmgr.register_report(
|
||||
category = CATEGORY_TEXT,
|
||||
report_class = SimpleBookTitle,
|
||||
options_class = SimpleBookTitleOptions,
|
||||
modes = MODE_BKI,
|
||||
modes = PluginManager.REPORT_MODE_BKI,
|
||||
translated_name = _("Title Page"),
|
||||
status = _("Stable"),
|
||||
description = _("Produces a title page for book reports."),
|
||||
|
||||
@@ -46,7 +46,8 @@ import GrampsDisplay
|
||||
import ManagedWindow
|
||||
import AutoComp
|
||||
from TransUtils import sgettext as _
|
||||
from PluginUtils import Tool, PluginManager
|
||||
from PluginUtils import Tool
|
||||
from gen.plug import PluginManager
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
@@ -149,7 +150,7 @@ pmgr.register_tool(
|
||||
category = Tool.TOOL_UTILS,
|
||||
tool_class = SoundGen,
|
||||
options_class = SoundGenOptions,
|
||||
modes = Tool.MODE_GUI,
|
||||
modes = PluginManager.TOOL_MODE_GUI,
|
||||
translated_name = _("Generate SoundEx Codes"),
|
||||
status=(_("Stable")),
|
||||
author_name = "Donald N. Allingham",
|
||||
|
||||
@@ -44,11 +44,10 @@ from TransUtils import sgettext as _
|
||||
from gen.lib import Person, FamilyRelType, EventType
|
||||
# gender and report type names
|
||||
import BaseDoc
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
from gen.plug.menu import BooleanOption, NumberOption, EnumeratedListOption, \
|
||||
FilterOption, PersonOption
|
||||
from ReportBase import Report, ReportUtils, MenuReportOptions, \
|
||||
CATEGORY_DRAW, MODE_GUI, MODE_BKI, MODE_CLI
|
||||
from ReportBase import Report, ReportUtils, MenuReportOptions, CATEGORY_DRAW
|
||||
import DateHandler
|
||||
from Utils import ProgressMeter
|
||||
|
||||
@@ -897,7 +896,9 @@ pmgr.register_report(
|
||||
category = CATEGORY_DRAW,
|
||||
report_class = StatisticsChart,
|
||||
options_class = StatisticsChartOptions,
|
||||
modes = MODE_GUI | MODE_BKI | MODE_CLI,
|
||||
modes = PluginManager.REPORT_MODE_GUI | \
|
||||
PluginManager.REPORT_MODE_BKI | \
|
||||
PluginManager.REPORT_MODE_CLI,
|
||||
translated_name = _("Statistics Charts"),
|
||||
status = _("Stable"),
|
||||
author_name = "Eero Tamminen",
|
||||
|
||||
@@ -37,9 +37,8 @@ from gettext import gettext as _
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
import gen.lib
|
||||
from PluginUtils import PluginManager
|
||||
from ReportBase import Report, ReportUtils, MenuReportOptions, \
|
||||
CATEGORY_TEXT, MODE_GUI, MODE_BKI, MODE_CLI
|
||||
from gen.plug import PluginManager
|
||||
from ReportBase import Report, ReportUtils, MenuReportOptions, CATEGORY_TEXT
|
||||
import BaseDoc
|
||||
from Utils import media_path_full
|
||||
import DateHandler
|
||||
@@ -297,7 +296,9 @@ pmgr.register_report(
|
||||
category = CATEGORY_TEXT,
|
||||
report_class = SummaryReport,
|
||||
options_class = SummaryOptions,
|
||||
modes = MODE_GUI | MODE_BKI | MODE_CLI,
|
||||
modes = PluginManager.REPORT_MODE_GUI | \
|
||||
PluginManager.REPORT_MODE_BKI | \
|
||||
PluginManager.REPORT_MODE_CLI,
|
||||
translated_name = _("Database Summary Report"),
|
||||
status = _("Stable"),
|
||||
description = _("Provides a summary of the current database"),
|
||||
|
||||
@@ -45,7 +45,8 @@ import gtk
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import gen.lib
|
||||
from PluginUtils import Tool, PluginManager
|
||||
from PluginUtils import Tool
|
||||
from gen.plug import PluginManager
|
||||
import Utils
|
||||
import LdsUtils
|
||||
|
||||
@@ -1396,7 +1397,7 @@ if __debug__:
|
||||
category = Tool.TOOL_DEBUG,
|
||||
tool_class = TestcaseGenerator,
|
||||
options_class = TestcaseGeneratorOptions,
|
||||
modes = Tool.MODE_GUI | Tool.MODE_CLI,
|
||||
modes = PluginManager.TOOL_MODE_GUI | PluginManager.TOOL_MODE_CLI,
|
||||
translated_name = _("Generate Testcases for Persons and Families"),
|
||||
status = _("Beta"),
|
||||
author_name = "Martin Hawlisch",
|
||||
|
||||
@@ -37,10 +37,9 @@ from TransUtils import sgettext as _
|
||||
# GRAMPS modules
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
from gen.plug.menu import PersonOption, FilterOption, EnumeratedListOption
|
||||
from ReportBase import Report, ReportUtils, MenuReportOptions, \
|
||||
CATEGORY_DRAW, MODE_GUI, MODE_BKI, MODE_CLI
|
||||
from ReportBase import Report, ReportUtils, MenuReportOptions, CATEGORY_DRAW
|
||||
pt2cm = ReportUtils.pt2cm
|
||||
import BaseDoc
|
||||
import Sort
|
||||
@@ -460,7 +459,9 @@ pmgr.register_report(
|
||||
category = CATEGORY_DRAW,
|
||||
report_class = TimeLine,
|
||||
options_class = TimeLineOptions,
|
||||
modes = MODE_GUI | MODE_BKI | MODE_CLI,
|
||||
modes = PluginManager.REPORT_MODE_GUI | \
|
||||
PluginManager.REPORT_MODE_BKI | \
|
||||
PluginManager.REPORT_MODE_CLI,
|
||||
translated_name = _("Timeline Chart"),
|
||||
status = _("Stable"),
|
||||
author_name = "Donald N. Allingham",
|
||||
|
||||
@@ -56,7 +56,8 @@ import Utils
|
||||
import GrampsDisplay
|
||||
from ManagedWindow import ManagedWindow
|
||||
from BasicUtils import UpdateCallback
|
||||
from PluginUtils import Tool, PluginManager
|
||||
from PluginUtils import Tool
|
||||
from gen.plug import PluginManager
|
||||
from TransUtils import sgettext as _
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
@@ -1575,7 +1576,7 @@ pmgr.register_tool(
|
||||
category = Tool.TOOL_UTILS,
|
||||
tool_class = Verify,
|
||||
options_class = VerifyOptions,
|
||||
modes = Tool.MODE_GUI | Tool.MODE_CLI,
|
||||
modes = PluginManager.TOOL_MODE_GUI | PluginManager.TOOL_MODE_CLI,
|
||||
translated_name = _("Verify the Data"),
|
||||
status=(_("Stable")),
|
||||
author_name = "Alex Roitman",
|
||||
|
||||
@@ -77,9 +77,8 @@ log = logging.getLogger(".WebPage")
|
||||
import gen.lib
|
||||
import const
|
||||
from GrampsCfg import get_researcher
|
||||
from PluginUtils import PluginManager
|
||||
from ReportBase import (Report, ReportUtils, MenuReportOptions, CATEGORY_WEB,
|
||||
MODE_GUI)
|
||||
from gen.plug import PluginManager
|
||||
from ReportBase import Report, ReportUtils, MenuReportOptions, CATEGORY_WEB
|
||||
from gen.plug.menu import BooleanOption, NumberOption, StringOption, \
|
||||
EnumeratedListOption, FilterOption, PersonOption, \
|
||||
DestinationOption
|
||||
@@ -1701,7 +1700,7 @@ pmgr.register_report(
|
||||
category = CATEGORY_WEB,
|
||||
report_class = WebCalReport,
|
||||
options_class = WebCalOptions,
|
||||
modes = MODE_GUI,
|
||||
modes = PluginManager.REPORT_MODE_GUI,
|
||||
translated_name = _("Web Calendar"),
|
||||
status = _("Stable"),
|
||||
author_name = "Thom Sturgill",
|
||||
|
||||
@@ -76,7 +76,7 @@ except:
|
||||
from GrampsDbUtils import XmlWriter
|
||||
from Utils import media_path_full
|
||||
from QuestionDialog import ErrorDialog, MissingMediaDialog
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
|
||||
_title_string = _("Export to CD")
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ import Utils
|
||||
from Filters import GenericFilter, Rules, build_filter_menu
|
||||
import Errors
|
||||
from QuestionDialog import ErrorDialog
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
||||
@@ -57,7 +57,7 @@ from Filters import GenericFilter, Rules, build_filter_menu
|
||||
import Utils
|
||||
import Errors
|
||||
from QuestionDialog import ErrorDialog
|
||||
from PluginUtils import PluginManager
|
||||
from gen.plug import PluginManager
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user