* src/plugins/WebPage.py (write_sibling): Apply patch from bug #
1230430 at sf.net with minor tweaks. svn: r4894
This commit is contained in:
parent
8179e66d0b
commit
3bf07bf96f
@ -1,3 +1,7 @@
|
|||||||
|
2005-07-01 Alex Roitman <shura@gramps-project.org>
|
||||||
|
* src/plugins/WebPage.py (write_sibling): Apply patch from bug #
|
||||||
|
1230430 at sf.net with minor tweaks.
|
||||||
|
|
||||||
2005-06-29 Don Allingham <don@gramps-project.org>
|
2005-06-29 Don Allingham <don@gramps-project.org>
|
||||||
* src/GrampsDbBase.py: don't count_person for gender stats on
|
* src/GrampsDbBase.py: don't count_person for gender stats on
|
||||||
add_person, since already done it commit_person
|
add_person, since already done it commit_person
|
||||||
|
@ -715,12 +715,24 @@ class IndividualPage:
|
|||||||
self.doc.write_text(_("Siblings"))
|
self.doc.write_text(_("Siblings"))
|
||||||
self.doc.end_paragraph()
|
self.doc.end_paragraph()
|
||||||
|
|
||||||
self.doc.start_table("three","IndTable")
|
self.doc.start_table("four","IndTable")
|
||||||
|
self.doc.start_row()
|
||||||
|
self.doc.start_cell("NormalCell")
|
||||||
|
self.doc.start_paragraph("Label")
|
||||||
|
self.doc.write_text(_("Siblings"))
|
||||||
|
self.doc.end_paragraph()
|
||||||
|
self.doc.end_cell()
|
||||||
|
|
||||||
|
self.doc.start_cell("NormalCell")
|
||||||
|
first = True
|
||||||
for child_handle in all_sisters:
|
for child_handle in all_sisters:
|
||||||
child = self.db.get_person_from_handle(child_handle)
|
child = self.db.get_person_from_handle(child_handle)
|
||||||
self.doc.start_paragraph("Data")
|
|
||||||
name = child.get_primary_name().get_regular_name()
|
name = child.get_primary_name().get_regular_name()
|
||||||
|
if first:
|
||||||
|
self.doc.start_paragraph("Data")
|
||||||
|
first = False
|
||||||
|
else:
|
||||||
|
self.doc.write_text('\n')
|
||||||
if self.person.get_handle() == child_handle:
|
if self.person.get_handle() == child_handle:
|
||||||
self.doc.write_text(name)
|
self.doc.write_text(name)
|
||||||
elif self.list.has_key(child_handle):
|
elif self.list.has_key(child_handle):
|
||||||
@ -729,8 +741,12 @@ class IndividualPage:
|
|||||||
self.doc.end_link()
|
self.doc.end_link()
|
||||||
else:
|
else:
|
||||||
self.doc.write_text(name)
|
self.doc.write_text(name)
|
||||||
|
if not first:
|
||||||
self.doc.end_paragraph()
|
self.doc.end_paragraph()
|
||||||
|
|
||||||
|
self.doc.end_cell()
|
||||||
|
self.doc.end_row()
|
||||||
|
self.doc.end_table()
|
||||||
|
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user