2008-01-29 Raphael Ackermann <raphael.ackermann@gmail.com>

* src/plugins/EventNames.py: doc fixes and removal of self.label

svn: r9957
This commit is contained in:
Raphael Ackermann 2008-01-29 17:27:16 +00:00
parent 7998da0bc0
commit bbd8b9fcb8
2 changed files with 13 additions and 12 deletions

View File

@ -1,3 +1,6 @@
2008-01-29 Raphael Ackermann <raphael.ackermann@gmail.com>
* src/plugins/EventNames.py: doc fixes and removal of self.label
2008-01-29 Gary Burton <gary.burton@zen.co.uk>
* src/plugins/TimeLine.py:
* src/Sort.py: Use fallback events e.g. baptism/burial when no birth or

View File

@ -34,8 +34,6 @@ from gettext import gettext as _
# gnome/gtk
#
#-------------------------------------------------------------------------
import gtk
import gtk.glade
#-------------------------------------------------------------------------
#
@ -56,15 +54,15 @@ from BasicUtils import name_displayer
#-------------------------------------------------------------------------
class EventNames(Tool.BatchTool, ManagedWindow.ManagedWindow):
"""
Looks for events that do not have a description, and builds the
description from the item that contains it. Looks for a PRIMARY role
type for events attached to a persons, and a FAMILY role for an event
that is attached to a family.
Look for events that do not have a description, and build the description
from the item that contains it.
Looks for a PRIMARY role type for events attached to a persons, and a
FAMILY role for an event that is attached to a family.
"""
def __init__(self, dbstate, uistate, options_class, name, callback=None):
self.label = _('Capitalization changes')
Tool.BatchTool.__init__(self, dbstate, options_class, name)
if not self.fail:
@ -74,7 +72,7 @@ class EventNames(Tool.BatchTool, ManagedWindow.ManagedWindow):
def run(self):
"""
Performs the actual extraction of information
Perform the actual extraction of information.
"""
trans = self.db.transaction_begin("", batch=True)
self.db.disable_signals()
@ -115,7 +113,7 @@ EVENT_PERSON_STR = _("%(event_name)s of %(person)s")
def person_event_name(event, person):
"""
Builds a name for an event based on the primary person's information
Build a name for an event based on the primary person's information.
"""
if not event.get_description():
text = EVENT_PERSON_STR % {
@ -126,7 +124,7 @@ def person_event_name(event, person):
def family_event_name(event, family, dbase):
"""
Builds a name for an event based on the family's information
Build a name for an event based on the family's information.
"""
if not event.get_description():
text = EVENT_FAMILY_STR % {
@ -142,7 +140,7 @@ def family_event_name(event, family, dbase):
#------------------------------------------------------------------------
class EventNamesOptions(Tool.ToolOptions):
"""
Defines options and provides handling interface.
Define options and provides handling interface.
"""
def __init__(self, name, person_id=None):