Step #2 some cleanup: Moved Gramplet class to gen/plug/_gramplet from DataView/GrampletView ; updated gramplets

svn: r13416
This commit is contained in:
Doug Blank
2009-10-25 20:29:45 +00:00
parent 88de64e9a0
commit 6af2d2f30a
26 changed files with 26 additions and 345 deletions

View File

@@ -34,7 +34,7 @@ on a particular date.
# GRAMPS modules
#
#------------------------------------------------------------------------
from DataViews import Gramplet
from gen.plug import Gramplet
from TransUtils import sgettext as _
import DateHandler
from QuickReports import run_quick_report_by_name

View File

@@ -26,7 +26,7 @@ This Gramplet shows textual distributions of age breakdowns of various types.
import locale
from DataViews import Gramplet
from gen.plug import Gramplet
from gettext import gettext as _
import gen.lib

View File

@@ -19,7 +19,7 @@
# $Id: $
#
from DataViews import Gramplet
from gen.plug import Gramplet
from BasicUtils import name_displayer
from gettext import gettext as _

View File

@@ -23,7 +23,7 @@
# GRAMPS modules
#
#------------------------------------------------------------------------
from DataViews import Gramplet
from gen.plug import Gramplet
from TransUtils import sgettext as _
from QuickReports import run_quick_report_by_name
import gen.lib

View File

@@ -23,7 +23,7 @@
# GRAMPS modules
#
#------------------------------------------------------------------------
from DataViews import Gramplet
from gen.plug import Gramplet
from BasicUtils import name_displayer
from ReportBase import ReportUtils
import DateHandler

View File

@@ -35,7 +35,7 @@ import gtk
#------------------------------------------------------------------------
from gen.lib import EventType, FamilyRelType
from BasicUtils import name_displayer
from DataViews import Gramplet
from gen.plug import Gramplet
from TransUtils import sgettext as _
#------------------------------------------------------------------------

View File

@@ -36,7 +36,7 @@ from gettext import gettext as _
# GRAMPS modules
#
#------------------------------------------------------------------------
from DataViews import Gramplet
from gen.plug import Gramplet
from ReportBase import ReportUtils
from BasicUtils import name_displayer
import DateHandler

View File

@@ -54,7 +54,7 @@ if gtk.pygtk_version < (2,3,93):
#-------------------------------------------------------------------------
from BasicUtils import name_displayer
from gettext import gettext as _
from DataViews import Gramplet
from gen.plug import Gramplet
from DataViews.PedigreeView import (find_children, find_parents,
find_witnessed_people, FormattingHelper)
import gen.lib

View File

@@ -23,7 +23,7 @@
# GRAMPS modules
#
#------------------------------------------------------------------------
from DataViews import Gramplet
from gen.plug import Gramplet
from TransUtils import sgettext as _
#------------------------------------------------------------------------

View File

@@ -22,7 +22,7 @@
#
from gettext import gettext as _
from DataViews import Gramplet
from gen.plug import Gramplet
import config
_YIELD_INTERVAL = 350

View File

@@ -45,7 +45,7 @@ import re
# GRAMPS modules
#
#------------------------------------------------------------------------
from DataViews import Gramplet
from gen.plug import Gramplet
from const import URL_WIKISTRING
from TransUtils import sgettext as _

View File

@@ -31,7 +31,7 @@ import pango
# GRAMPS modules
#
#------------------------------------------------------------------------
from DataViews import Gramplet
from gen.plug import Gramplet
from BasicUtils import name_displayer
from TransUtils import sgettext as _
from const import GLADE_FILE

View File

@@ -31,7 +31,7 @@ import locale
# GRAMPS modules
#
#------------------------------------------------------------------------
from DataViews import Gramplet
from gen.plug import Gramplet
from TransUtils import sgettext as _
from gettext import ngettext
from BasicUtils import name_displayer

View File

@@ -30,8 +30,7 @@ import urllib
# GRAMPS modules
#
#------------------------------------------------------------------------
from DataViews import Gramplet
from DataViews.GrampletView import AVAILABLE_GRAMPLETS
from gen.plug import Gramplet
from TransUtils import sgettext as _
#------------------------------------------------------------------------
@@ -79,7 +78,7 @@ class PluginManagerGramplet(Gramplet):
for row in rows:
types[row[1]] = 1
self.set_text("")
# name, type, ver, desc, gver, use, rating, contact, download
# name, type, ver, desc, use, rating, contact, download
for type in types:
self.render_text("<b>%s Plugins</b>\n" % _(type))
row_count = 1

View File

@@ -30,7 +30,7 @@ import sys
# GRAMPS modules
#
#------------------------------------------------------------------------
from DataViews import Gramplet
from gen.plug import Gramplet
from TransUtils import sgettext as _
import gen

View File

@@ -30,7 +30,7 @@
# GRAMPS modules
#
#------------------------------------------------------------------------
from DataViews import Gramplet
from gen.plug import Gramplet
from TransUtils import sgettext as _
from QuickReports import run_quick_report_by_name, get_quick_report_list
from gen.plug import (CATEGORY_QR_PERSON, CATEGORY_QR_FAMILY,

View File

@@ -23,7 +23,7 @@
# GRAMPS modules
#
#------------------------------------------------------------------------
from DataViews import Gramplet
from gen.plug import Gramplet
from TransUtils import sgettext as _
from BasicUtils import name_displayer

View File

@@ -23,7 +23,7 @@
# GRAMPS modules
#
#------------------------------------------------------------------------
from DataViews import Gramplet
from gen.plug import Gramplet
from TransUtils import sgettext as _
from BasicUtils import name_displayer

View File

@@ -30,7 +30,7 @@ import posixpath
# GRAMPS modules
#
#------------------------------------------------------------------------
from DataViews import Gramplet
from gen.plug import Gramplet
from TransUtils import sgettext as _
from Utils import media_path_full
import DateHandler

View File

@@ -23,7 +23,7 @@
# GRAMPS modules
#
#------------------------------------------------------------------------
from DataViews import Gramplet
from gen.plug import Gramplet
from TransUtils import sgettext as _
import config

View File

@@ -23,7 +23,7 @@
# GRAMPS modules
#
#------------------------------------------------------------------------
from DataViews import Gramplet
from gen.plug import Gramplet
from TransUtils import sgettext as _
#------------------------------------------------------------------------

View File

@@ -23,7 +23,7 @@
# GRAMPS modules
#
#------------------------------------------------------------------------
from DataViews import Gramplet
from gen.plug import Gramplet
from TransUtils import sgettext as _
import config

View File

@@ -27,8 +27,8 @@
#
#------------------------------------------------------------------------
from gen.lib import EventType, FamilyRelType, MarkerType
from gen.plug import Gramplet
from BasicUtils import name_displayer
from DataViews import Gramplet
from ReportBase import ReportUtils
from TransUtils import sgettext as _