Update
svn: r6120
This commit is contained in:
parent
2447f79254
commit
29f7dd24be
@ -47,8 +47,7 @@ import QuestionDialog
|
|||||||
import Config
|
import Config
|
||||||
import RecentFiles
|
import RecentFiles
|
||||||
import PluginMgr
|
import PluginMgr
|
||||||
import Report
|
from PluginUtils import Report, Tool
|
||||||
import Tool
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
|
@ -42,7 +42,7 @@ import pango
|
|||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import RelLib
|
import RelLib
|
||||||
import ReportUtils
|
from PluginUtils import ReportUtils
|
||||||
import Utils
|
import Utils
|
||||||
import NameDisplay
|
import NameDisplay
|
||||||
import const
|
import const
|
||||||
|
@ -195,7 +195,7 @@ def register_tool(
|
|||||||
them as needed.
|
them as needed.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import Tool
|
from PluginUtils import Tool
|
||||||
(junk,gui_task) = divmod(modes,2**Tool.MODE_GUI)
|
(junk,gui_task) = divmod(modes,2**Tool.MODE_GUI)
|
||||||
if gui_task:
|
if gui_task:
|
||||||
_register_gui_tool(tool_class,options_class,translated_name,
|
_register_gui_tool(tool_class,options_class,translated_name,
|
||||||
@ -263,7 +263,7 @@ def register_report(
|
|||||||
The low-level functions (starting with '_') should not be used
|
The low-level functions (starting with '_') should not be used
|
||||||
on their own. Instead, this function will call them as needed.
|
on their own. Instead, this function will call them as needed.
|
||||||
"""
|
"""
|
||||||
import Report
|
from PluginUtils import Report
|
||||||
(junk,standalone_task) = divmod(modes,2**Report.MODE_GUI)
|
(junk,standalone_task) = divmod(modes,2**Report.MODE_GUI)
|
||||||
if standalone_task:
|
if standalone_task:
|
||||||
_register_standalone(report_class,options_class,translated_name,
|
_register_standalone(report_class,options_class,translated_name,
|
||||||
@ -292,7 +292,7 @@ def _register_standalone(report_class, options_class, translated_name,
|
|||||||
):
|
):
|
||||||
"""Register a report with the plugin system"""
|
"""Register a report with the plugin system"""
|
||||||
|
|
||||||
import Report
|
from PluginUtils import Report
|
||||||
|
|
||||||
del_index = -1
|
del_index = -1
|
||||||
for i in range(0,len(report_list)):
|
for i in range(0,len(report_list)):
|
||||||
|
@ -25,6 +25,15 @@
|
|||||||
A collection of utilities to aid in the generation of reports.
|
A collection of utilities to aid in the generation of reports.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------
|
||||||
|
#
|
||||||
|
# Standard Python modules
|
||||||
|
#
|
||||||
|
#-------------------------------------------------------------------------
|
||||||
|
import time
|
||||||
|
import os
|
||||||
|
from gettext import gettext as _
|
||||||
|
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# GRAMPS modules
|
# GRAMPS modules
|
||||||
@ -33,11 +42,7 @@ A collection of utilities to aid in the generation of reports.
|
|||||||
import DateHandler
|
import DateHandler
|
||||||
import RelLib
|
import RelLib
|
||||||
from NameDisplay import displayer as _nd
|
from NameDisplay import displayer as _nd
|
||||||
import DateHandler
|
|
||||||
from QuestionDialog import WarningDialog
|
from QuestionDialog import WarningDialog
|
||||||
import time
|
|
||||||
import os
|
|
||||||
from gettext import gettext as _
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
|
@ -20,5 +20,7 @@
|
|||||||
|
|
||||||
# $Id: Report.py 6044 2006-03-03 00:10:52Z rshura $
|
# $Id: Report.py 6044 2006-03-03 00:10:52Z rshura $
|
||||||
|
|
||||||
import Report
|
import _Report as Report
|
||||||
import Tool
|
import _ReportOptions as ReportOptions
|
||||||
|
import _ReportUtils as ReportUtils
|
||||||
|
import _Tool as Tool
|
||||||
|
@ -57,8 +57,7 @@ import const
|
|||||||
import Utils
|
import Utils
|
||||||
import Config
|
import Config
|
||||||
import Errors
|
import Errors
|
||||||
import Report
|
from PluginUtils import Report, Tool
|
||||||
import Tool
|
|
||||||
import PluginMgr
|
import PluginMgr
|
||||||
import GrampsDisplay
|
import GrampsDisplay
|
||||||
import DisplayState
|
import DisplayState
|
||||||
|
@ -66,8 +66,7 @@ import TipOfDay
|
|||||||
import Bookmarks
|
import Bookmarks
|
||||||
import RecentFiles
|
import RecentFiles
|
||||||
import NameDisplay
|
import NameDisplay
|
||||||
import Tool
|
from PluginUtils import Report, Tool
|
||||||
import Report
|
|
||||||
import Mime
|
import Mime
|
||||||
import Config
|
import Config
|
||||||
import GrampsWidgets
|
import GrampsWidgets
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# Gramps - a GTK+/GNOME based genealogy program
|
# Gramps - a GTK+/GNOME based genealogy program
|
||||||
#
|
#
|
||||||
# Copyright (C) 2000-2005 Donald N. Allingham
|
# Copyright (C) 2000-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
|
||||||
@ -43,10 +43,10 @@ import gtk
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
import BaseDoc
|
import BaseDoc
|
||||||
import Report
|
from PluginUtils import Report, ReportOptions, ReportUtils
|
||||||
from SubstKeywords import SubstKeywords
|
from SubstKeywords import SubstKeywords
|
||||||
from ReportUtils import pt2cm, cm2pt
|
pt2cm = ReportUtils.pt2cm
|
||||||
import ReportOptions
|
cm2pt = ReportUtils.cm2pt
|
||||||
|
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user