* PluginUtils: Add module with Report and Tool utils.

svn: r6121
This commit is contained in:
Alex Roitman 2006-03-09 20:49:29 +00:00
parent 29f7dd24be
commit 7784228360
32 changed files with 231 additions and 242 deletions

View File

@ -1,3 +1,6 @@
2006-03-09 Alex Roitman <shura@gramps-project.org>
* PluginUtils: Add module with Report and Tool utils.
2006-03-09 Don Allingham <don@gramps-project.org>
* src/const.py.in: add use_tips variable
* src/PeopleModel.py: use_tips to control tool tips

View File

@ -241,6 +241,7 @@ src/docgen/Makefile
src/Models/Makefile
src/Editors/Makefile
src/DataViews/Makefile
src/PluginUtils/Makefile
src/plugins/Makefile
src/DateHandler/Makefile
src/data/Makefile

View File

@ -14,6 +14,7 @@ SUBDIRS = \
TreeViews \
data \
DateHandler \
PluginUtils \
glade \
docgen \
images \
@ -71,7 +72,6 @@ gdir_PYTHON = \
MergePeople.py\
NameDisplay.py\
Navigation.py\
Options.py\
PageView.py\
PaperMenu.py\
PeopleModel.py\
@ -81,9 +81,6 @@ gdir_PYTHON = \
RecentFiles.py\
Relationship.py\
RelImage.py\
ReportOptions.py\
Report.py\
ReportUtils.py\
ScratchPad.py\
SelectEvent.py\
SelectObject.py\
@ -96,7 +93,6 @@ gdir_PYTHON = \
StyleEditor.py\
SubstKeywords.py\
TipOfDay.py\
Tool.py\
ToolTips.py\
TransUtils.py\
TreeTips.py\

View File

@ -0,0 +1,23 @@
# This is the src/PluginUtils level Makefile for Gramps
# We could use GNU make's ':=' syntax for nice wildcard use,
# but that is not necessarily portable.
# If not using GNU make, then list all .py files individually
pkgdatadir = $(datadir)/@PACKAGE@/PluginUtils
pkgdata_PYTHON = \
__init__.py\
_Options.py\
_ReportOptions.py\
_Report.py\
_ReportUtils.py\
_Tool.py
pkgpyexecdir = @pkgpyexecdir@/PluginUtils
pkgpythondir = @pkgpythondir@/PluginUtils
GRAMPS_PY_MODPATH = "../"
pycheck:
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
pychecker $(pkgdata_PYTHON));

View File

@ -52,7 +52,6 @@ import gtk
#-------------------------------------------------------------------------
import const
import Utils
import Plugins
import PluginMgr
import BaseDoc
import StyleEditor
@ -1576,7 +1575,7 @@ class TextReportDialog(ReportDialog):
"""Build a menu of document types that are appropriate for
this text report. This menu will be generated based upon
whether the document requires table support, etc."""
self.format_menu = Plugins.GrampsTextFormatComboBox()
self.format_menu = GrampsTextFormatComboBox()
self.format_menu.set(self.doc_uses_tables(),
self.doc_type_changed, None, active)
@ -1602,7 +1601,7 @@ class DrawReportDialog(ReportDialog):
def make_doc_menu(self,active=None):
"""Build a menu of document types that are appropriate for
this drawing report."""
self.format_menu = Plugins.GrampsDrawFormatComboBox()
self.format_menu = GrampsDrawFormatComboBox()
self.format_menu.set(False,self.doc_type_changed, None, active)
@ -1940,3 +1939,150 @@ def cl_report(database,name,category,report_class,options_class,options_str_dict
MyReport.end_report()
except:
log.error("Failed to write report.", exc_info=True)
#-------------------------------------------------------------------------
#
# get_text_doc_menu
#
#-------------------------------------------------------------------------
class GrampsTextFormatComboBox(gtk.ComboBox):
def set(self,tables,callback,obj=None,active=None):
self.store = gtk.ListStore(str)
self.set_model(self.store)
cell = gtk.CellRendererText()
self.pack_start(cell,True)
self.add_attribute(cell,'text',0)
out_pref = Config.get_output_preference()
index = 0
PluginMgr.textdoc_list.sort()
active_index = 0
for item in PluginMgr.textdoc_list:
if tables and item[2] == 0:
continue
name = item[0]
self.store.append(row=[name])
#if callback:
# menuitem.connect("activate",callback)
if item[7] == active:
active_index = index
elif not active and name == out_pref:
active_index = index
index = index + 1
self.set_active(active_index)
def get_label(self):
return PluginMgr.textdoc_list[self.get_active()][0]
def get_reference(self):
return PluginMgr.textdoc_list[self.get_active()][1]
def get_paper(self):
return PluginMgr.textdoc_list[self.get_active()][3]
def get_styles(self):
return PluginMgr.textdoc_list[self.get_active()][4]
def get_ext(self):
return PluginMgr.textdoc_list[self.get_active()][5]
def get_printable(self):
return PluginMgr.textdoc_list[self.get_active()][6]
def get_clname(self):
return PluginMgr.textdoc_list[self.get_active()][7]
class GrampsDrawFormatComboBox(gtk.ComboBox):
def set(self,tables,callback,obj=None,active=None):
self.store = gtk.ListStore(str)
self.set_model(self.store)
cell = gtk.CellRendererText()
self.pack_start(cell,True)
self.add_attribute(cell,'text',0)
out_pref = Config.get_output_preference()
index = 0
PluginMgr.drawdoc_list.sort()
active_index = 0
for item in PluginMgr.drawdoc_list:
if tables and item[2] == 0:
continue
name = item[0]
self.store.append(row=[name])
#if callback:
# menuitem.connect("activate",callback)
if item[6] == active:
active_index = index
elif not active and name == out_pref:
active_index = index
index = index + 1
self.set_active(active_index)
def get_reference(self):
return PluginMgr.drawdoc_list[self.get_active()][1]
def get_label(self):
return PluginMgr.drawdoc_list[self.get_active()][0]
def get_paper(self):
return PluginMgr.drawdoc_list[self.get_active()][2]
def get_styles(self):
return PluginMgr.drawdoc_list[self.get_active()][3]
def get_ext(self):
return PluginMgr.drawdoc_list[self.get_active()][4]
def get_printable(self):
return PluginMgr.drawdoc_list[self.get_active()][5]
def get_clname(self):
return PluginMgr.drawdoc_list[self.get_active()][6]
class GrampsBookFormatComboBox(gtk.ComboBox):
def set(self,tables,callback,obj=None,active=None):
self.store = gtk.ListStore(str)
self.set_model(self.store)
cell = gtk.CellRendererText()
self.pack_start(cell,True)
self.add_attribute(cell,'text',0)
out_pref = Config.get_output_preference()
index = 0
PluginMgr.drawdoc_list.sort()
active_index = 0
self.data = []
for item in PluginMgr.bookdoc_list:
if tables and item[2] == 0:
continue
self.data.append(item)
name = item[0]
self.store.append(row=[name])
if item[7] == active:
active_index = index
elif not active and name == out_pref:
active_index = index
index += 1
self.set_active(active_index)
def get_reference(self):
return self.data[self.get_active()][1]
def get_label(self):
return self.data[self.get_active()][0]
def get_paper(self):
return self.data[self.get_active()][3]
def get_ext(self):
return self.data[self.get_active()][5]
def get_printable(self):
return self.data[self.get_active()][6]
def get_clname(self):
return self.data[self.get_active()][7]

View File

@ -447,152 +447,6 @@ def build_plugin_menu(item_list,categories,func,top_menu,callback):
def by_menu_name(a,b):
return cmp(a[2],b[2])
#-------------------------------------------------------------------------
#
# get_text_doc_menu
#
#-------------------------------------------------------------------------
class GrampsTextFormatComboBox(gtk.ComboBox):
def set(self,tables,callback,obj=None,active=None):
self.store = gtk.ListStore(str)
self.set_model(self.store)
cell = gtk.CellRendererText()
self.pack_start(cell,True)
self.add_attribute(cell,'text',0)
out_pref = Config.get_output_preference()
index = 0
PluginMgr.textdoc_list.sort()
active_index = 0
for item in PluginMgr.textdoc_list:
if tables and item[2] == 0:
continue
name = item[0]
self.store.append(row=[name])
#if callback:
# menuitem.connect("activate",callback)
if item[7] == active:
active_index = index
elif not active and name == out_pref:
active_index = index
index = index + 1
self.set_active(active_index)
def get_label(self):
return PluginMgr.textdoc_list[self.get_active()][0]
def get_reference(self):
return PluginMgr.textdoc_list[self.get_active()][1]
def get_paper(self):
return PluginMgr.textdoc_list[self.get_active()][3]
def get_styles(self):
return PluginMgr.textdoc_list[self.get_active()][4]
def get_ext(self):
return PluginMgr.textdoc_list[self.get_active()][5]
def get_printable(self):
return PluginMgr.textdoc_list[self.get_active()][6]
def get_clname(self):
return PluginMgr.textdoc_list[self.get_active()][7]
class GrampsDrawFormatComboBox(gtk.ComboBox):
def set(self,tables,callback,obj=None,active=None):
self.store = gtk.ListStore(str)
self.set_model(self.store)
cell = gtk.CellRendererText()
self.pack_start(cell,True)
self.add_attribute(cell,'text',0)
out_pref = Config.get_output_preference()
index = 0
PluginMgr.drawdoc_list.sort()
active_index = 0
for item in PluginMgr.drawdoc_list:
if tables and item[2] == 0:
continue
name = item[0]
self.store.append(row=[name])
#if callback:
# menuitem.connect("activate",callback)
if item[6] == active:
active_index = index
elif not active and name == out_pref:
active_index = index
index = index + 1
self.set_active(active_index)
def get_reference(self):
return PluginMgr.drawdoc_list[self.get_active()][1]
def get_label(self):
return PluginMgr.drawdoc_list[self.get_active()][0]
def get_paper(self):
return PluginMgr.drawdoc_list[self.get_active()][2]
def get_styles(self):
return PluginMgr.drawdoc_list[self.get_active()][3]
def get_ext(self):
return PluginMgr.drawdoc_list[self.get_active()][4]
def get_printable(self):
return PluginMgr.drawdoc_list[self.get_active()][5]
def get_clname(self):
return PluginMgr.drawdoc_list[self.get_active()][6]
class GrampsBookFormatComboBox(gtk.ComboBox):
def set(self,tables,callback,obj=None,active=None):
self.store = gtk.ListStore(str)
self.set_model(self.store)
cell = gtk.CellRendererText()
self.pack_start(cell,True)
self.add_attribute(cell,'text',0)
out_pref = Config.get_output_preference()
index = 0
PluginMgr.drawdoc_list.sort()
active_index = 0
self.data = []
for item in PluginMgr.bookdoc_list:
if tables and item[2] == 0:
continue
self.data.append(item)
name = item[0]
self.store.append(row=[name])
if item[7] == active:
active_index = index
elif not active and name == out_pref:
active_index = index
index += 1
self.set_active(active_index)
def get_reference(self):
return self.data[self.get_active()][1]
def get_label(self):
return self.data[self.get_active()][0]
def get_paper(self):
return self.data[self.get_active()][3]
def get_ext(self):
return self.data[self.get_active()][5]
def get_printable(self):
return self.data[self.get_active()][6]
def get_clname(self):
return self.data[self.get_active()][7]
#-------------------------------------------------------------------------
#
# Reload plugins

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
@ -42,10 +42,9 @@ import gtk
#
#------------------------------------------------------------------------
import BaseDoc
import Report
from PluginUtils import Report, ReportOptions, ReportUtils
from SubstKeywords import SubstKeywords
from ReportUtils import pt2cm
import ReportOptions
pt2cm = ReportUtils.pt2cm
#------------------------------------------------------------------------
#

View File

@ -43,8 +43,8 @@ import gtk
#
#------------------------------------------------------------------------
import BaseDoc
from PluginUtils import Report, ReportOptions, ReportUtils
from SubstKeywords import SubstKeywords
from PluginUtils import Report, ReportOptions, ReportUtils
pt2cm = ReportUtils.pt2cm
cm2pt = ReportUtils.cm2pt

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
@ -35,12 +35,10 @@ from gettext import gettext as _
# gramps modules
#
#------------------------------------------------------------------------
import Report
import ReportUtils
from PluginUtils import Report, ReportUtils, ReportOptions
import BaseDoc
import Errors
import NameDisplay
import ReportOptions
#------------------------------------------------------------------------
#

View File

@ -1,7 +1,7 @@
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2003-2005 Donald N. Allingham
# Copyright (C) 2003-2006 Donald N. Allingham
# Copyright (C) 2003 Tim Waugh
#
# This program is free software; you can redistribute it and/or modify
@ -42,12 +42,10 @@ import gtk
#
#------------------------------------------------------------------------
import const
import Report
from PluginUtils import Report, ReportOptions, ReportUtils
import BaseDoc
import RelLib
import PluginMgr
import ReportOptions
import ReportUtils
from DateHandler import displayer as _dd
from NameDisplay import displayer as _nd

View File

@ -1,7 +1,7 @@
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2003-2005 Donald N. Allingham
# Copyright (C) 2003-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
@ -67,10 +67,9 @@ from RelLib import Person
import Utils
import ListModel
import PluginMgr
import Report
from PluginUtils import Report, ReportOptions
import BaseDoc
from QuestionDialog import WarningDialog
import ReportOptions
import Plugins
#------------------------------------------------------------------------

View File

@ -38,11 +38,10 @@ import locale
#
#------------------------------------------------------------------------
import BaseDoc
import Report
from PluginUtils import Report, ReportOptions, ReportUtils
pt2cm = ReportUtils.pt2cm
import GenericFilter
from ReportUtils import pt2cm
from DateHandler import DateDisplay
import ReportOptions
import RelLib
# _days could be added to DateDisplay:

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
@ -37,10 +37,9 @@ from gettext import gettext as _
# GRAMPS modules
#
#-------------------------------------------------------------------------
import Tool
from PluginUtils import Tool, Report
import Utils
import PluginMgr
import Report
#-------------------------------------------------------------------------
#

View File

@ -2,7 +2,7 @@
# count_anc.py - Ancestor counting plugin for gramps
#
# Copyright (C) 2001 Jesper Zedlitz
# Copyright (C) 2004 Donald Allingham
# Copyright (C) 2004-2006 Donald 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
@ -45,7 +45,7 @@ import gtk.glade
#
#------------------------------------------------------------------------
import Utils
import Report
from PluginUtils import Report
#------------------------------------------------------------------------
#

View File

@ -1,6 +1,6 @@
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2003-2005 Donald N. Allingham
# Copyright (C) 2003-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
@ -41,9 +41,8 @@ import gtk
# gramps modules
#
#------------------------------------------------------------------------
import Report
from PluginUtils import Report, ReportOptions
import BaseDoc
import ReportOptions
#------------------------------------------------------------------------
#

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
@ -41,11 +41,10 @@ import gtk
# GRAMPS modules
#
#------------------------------------------------------------------------
import Report
from PluginUtils import Report, ReportOptions, ReportUtils
pt2cm = ReportUtils.pt2cm
import BaseDoc
from SubstKeywords import SubstKeywords
from ReportUtils import pt2cm
import ReportOptions
#------------------------------------------------------------------------
#

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
pt2cm = ReportUtils.pt2cm
cm2pt = ReportUtils.cm2pt
from SubstKeywords import SubstKeywords
from ReportUtils import pt2cm, cm2pt
import ReportOptions
import NameDisplay
#------------------------------------------------------------------------

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
@ -35,13 +35,11 @@ from gettext import gettext as _
# GRAMPS modules
#
#------------------------------------------------------------------------
import Report
from PluginUtils import Report, ReportOptions, ReportUtils
import BaseDoc
import Errors
import Sort
from QuestionDialog import ErrorDialog
import ReportOptions
import ReportUtils
import NameDisplay
#------------------------------------------------------------------------

View File

@ -44,12 +44,9 @@ import gtk
#
#------------------------------------------------------------------------
import RelLib
import Report
from PluginUtils import Report, ReportOptions, ReportUtils
import BaseDoc
import ReportOptions
import const
import ReportUtils
from QuestionDialog import ErrorDialog
from DateHandler import displayer as _dd
from NameDisplay import displayer as _nd

View File

@ -45,12 +45,9 @@ import gtk
#------------------------------------------------------------------------
import RelLib
import Errors
import Report
from PluginUtils import Report, ReportOptions, ReportUtils
import BaseDoc
import ReportOptions
import ReportUtils
import const
from DateHandler import displayer as _dd
from NameDisplay import displayer as _nd
from QuestionDialog import ErrorDialog

View File

@ -42,9 +42,8 @@ import gtk
#
#------------------------------------------------------------------------
import RelLib
import Report
from PluginUtils import Report, ReportOptions
import BaseDoc
import ReportOptions
import const
import DateHandler

View File

@ -1,7 +1,7 @@
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2003-2005 Donald N. Allingham
# Copyright (C) 2003-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
@ -40,10 +40,9 @@ import gtk
#
#------------------------------------------------------------------------
import BaseDoc
import Report
import ReportOptions
from PluginUtils import Report, ReportOptions, ReportUtils
from SubstKeywords import SubstKeywords
from ReportUtils import pt2cm
pt2cm = ReportUtils.pt2cm
#------------------------------------------------------------------------
#

View File

@ -1,7 +1,7 @@
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2003-2005 Donald N. Allingham
# Copyright (C) 2003-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
@ -34,13 +34,11 @@ from gettext import gettext as _
# gramps modules
#
#------------------------------------------------------------------------
import Report
import BaseDoc
import RelLib
import ReportOptions
import DateHandler
import const
import ReportUtils
from PluginUtils import Report, ReportOptions, ReportUtils
#------------------------------------------------------------------------
#

View File

@ -1,7 +1,7 @@
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2003-2005 Donald N. Allingham
# Copyright (C) 2003-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
@ -37,11 +37,9 @@ from gettext import gettext as _
# gramps modules
#
#------------------------------------------------------------------------
import Report
from PluginUtils import Report, ReportOptions, ReportUtils
import BaseDoc
import RelLib
import ReportUtils
import ReportOptions
import DateHandler
import const

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
# Contributions by Lorenzo Cappelletti <lorenzo.cappelletti@email.it>
#
# This program is free software; you can redistribute it and/or modify
@ -52,8 +52,7 @@ import gtk
# GRAMPS modules
#
#------------------------------------------------------------------------
import Report
import ReportOptions
from PluginUtils import Report, ReportOptions
import GenericFilter
import RelLib
import DateHandler

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,11 +43,9 @@ import gtk
import RelLib
import const
import BaseDoc
import Report
import ReportUtils
import GenericFilter
import ReportOptions
import DateHandler
from PluginUtils import Report, ReportOptions, ReportUtils
#------------------------------------------------------------------------
#

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
@ -45,8 +45,7 @@ import gtk
import RelLib
import const
import BaseDoc
import Report
import ReportOptions
from PluginUtils import Report, ReportOptions
import DateHandler
#------------------------------------------------------------------------

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 Pubilc License as published by
@ -69,11 +69,9 @@ import const
from GrampsCfg import get_researcher
import GenericFilter
import Sort
import Report
from PluginUtils import Report, ReportOptions, ReportUtils
import Errors
import Utils
import ReportOptions
import ReportUtils
import ImgManip
import GrampsLocale
from QuestionDialog import ErrorDialog, WarningDialog

View File

@ -1,6 +1,6 @@
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2003-2005 Donald N. Allingham
# Copyright (C) 2003-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
@ -41,11 +41,10 @@ import gtk
# gramps modules
#
#------------------------------------------------------------------------
import Report
from PluginUtils import Report, ReportOptions
import BaseDoc
import SelectObject
import AddMedia
import ReportOptions
import ImgManip
#------------------------------------------------------------------------

View File

@ -1,7 +1,7 @@
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2003-2005 Donald N. Allingham
# Copyright (C) 2003-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
@ -53,9 +53,7 @@ import gtk
from RelLib import Person, Family
# gender and report type names
import BaseDoc
import Report
import ReportUtils
import ReportOptions
from PluginUtils import Report, ReportOptions, ReportUtils
import GenericFilter
import DateHandler
from Utils import ProgressMeter

View File

@ -1,7 +1,7 @@
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2004 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
@ -45,7 +45,7 @@ import gtk.glade
#------------------------------------------------------------------------
import Utils
import RelLib
import Report
from PluginUtils import Report
import DateHandler
#------------------------------------------------------------------------

View File

@ -1,7 +1,7 @@
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2003-2005 Donald N. Allingham
# Copyright (C) 2003-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
@ -44,12 +44,11 @@ import gtk
# GRAMPS modules
#
#------------------------------------------------------------------------
from ReportUtils import pt2cm
import Report
from PluginUtils import Report, ReportOptions, ReportUtils
pt2cm = ReportUtils.pt2cm
import BaseDoc
import GenericFilter
import Sort
import ReportOptions
from QuestionDialog import ErrorDialog
#------------------------------------------------------------------------