svn: r6120
This commit is contained in:
Alex Roitman 2006-03-09 20:21:32 +00:00
parent f3ba0044c3
commit 1359e602d2
8 changed files with 24 additions and 20 deletions

View File

@ -47,8 +47,7 @@ import QuestionDialog
import Config
import RecentFiles
import PluginMgr
import Report
import Tool
from PluginUtils import Report, Tool
#-------------------------------------------------------------------------
#

View File

@ -42,7 +42,7 @@ import pango
#
#-------------------------------------------------------------------------
import RelLib
import ReportUtils
from PluginUtils import ReportUtils
import Utils
import NameDisplay
import const

View File

@ -195,7 +195,7 @@ def register_tool(
them as needed.
"""
import Tool
from PluginUtils import Tool
(junk,gui_task) = divmod(modes,2**Tool.MODE_GUI)
if gui_task:
_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
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)
if standalone_task:
_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"""
import Report
from PluginUtils import Report
del_index = -1
for i in range(0,len(report_list)):

View File

@ -25,6 +25,15 @@
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
@ -33,11 +42,7 @@ A collection of utilities to aid in the generation of reports.
import DateHandler
import RelLib
from NameDisplay import displayer as _nd
import DateHandler
from QuestionDialog import WarningDialog
import time
import os
from gettext import gettext as _
#------------------------------------------------------------------------
#

View File

@ -20,5 +20,7 @@
# $Id: Report.py 6044 2006-03-03 00:10:52Z rshura $
import Report
import Tool
import _Report as Report
import _ReportOptions as ReportOptions
import _ReportUtils as ReportUtils
import _Tool as Tool

View File

@ -57,8 +57,7 @@ import const
import Utils
import Config
import Errors
import Report
import Tool
from PluginUtils import Report, Tool
import PluginMgr
import GrampsDisplay
import DisplayState

View File

@ -66,8 +66,7 @@ import TipOfDay
import Bookmarks
import RecentFiles
import NameDisplay
import Tool
import Report
from PluginUtils import Report, Tool
import Mime
import Config
import GrampsWidgets

View File

@ -1,7 +1,7 @@
#
# 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
# it under the terms of the GNU General Public License as published by
@ -43,10 +43,10 @@ import gtk
#
#------------------------------------------------------------------------
import BaseDoc
import Report
from PluginUtils import Report, ReportOptions, ReportUtils
from SubstKeywords import SubstKeywords
from ReportUtils import pt2cm, cm2pt
import ReportOptions
pt2cm = ReportUtils.pt2cm
cm2pt = ReportUtils.cm2pt
#------------------------------------------------------------------------
#