* src/plugins/OnThisDay.py: date sortable
* src/plugins/SameSurnames.py: date sortable * src/plugins/siblings.py: date sortable * src/Simple/_SimpleAccess.py: simple method to get date_obj * src/Simple/_SimpleTable.py: manual override of link_col; removed call to quick_reports (could have been recursive) 2008-01-15 Douglas S. Blank <dblank@cs.brynmawr.edu> svn: r9831
This commit is contained in:
@@ -64,8 +64,11 @@ def run(database, document, main_event):
|
||||
sdb = SimpleAccess(database)
|
||||
sdoc = SimpleDoc(document)
|
||||
stab = SimpleTable(sdb, sdoc)
|
||||
stab.set_link_col(3)
|
||||
yeartab = SimpleTable(sdb, sdoc)
|
||||
yeartab.set_link_col(3)
|
||||
histab = SimpleTable(sdb, sdoc)
|
||||
histab.set_link_col(3)
|
||||
|
||||
# display the title
|
||||
sdoc.title(_("Events of %(date)s") %
|
||||
|
||||
@@ -68,7 +68,8 @@ def run(database, document, person):
|
||||
matches = 0
|
||||
for person_handle in people:
|
||||
person = database.get_person_from_handle(person_handle)
|
||||
stab.row(person, sdb.birth_date(person), str(person.get_primary_name().get_type()))
|
||||
stab.row(person, sdb.birth_date_obj(person),
|
||||
str(person.get_primary_name().get_type()))
|
||||
matches += 1
|
||||
sdoc.paragraph(_("There are %d people with a matching name, or alternate name.\n") % matches)
|
||||
stab.write()
|
||||
|
||||
@@ -58,7 +58,7 @@ def run(database, document, person):
|
||||
# pass row the child object to make link:
|
||||
stab.row(child,
|
||||
sdb.gender(child),
|
||||
sdb.birth_date(child),
|
||||
sdb.birth_date_obj(child),
|
||||
rel_str)
|
||||
stab.write()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user