Removed Totals Column and Row from class EventListPage.
svn: r15472
This commit is contained in:
parent
577071b666
commit
6c01a611d7
@ -2475,8 +2475,7 @@ class EventListPage(BasePage):
|
|||||||
[THEAD, "Type"],
|
[THEAD, "Type"],
|
||||||
[DHEAD, "Date"],
|
[DHEAD, "Date"],
|
||||||
[GRAMPSID, "GRAMPSID"],
|
[GRAMPSID, "GRAMPSID"],
|
||||||
[_PERSON, "Person"],
|
[_PERSON, "Person"] ]
|
||||||
[_("Totals"), "Totals"] ]
|
|
||||||
)
|
)
|
||||||
|
|
||||||
tbody = Html("tbody")
|
tbody = Html("tbody")
|
||||||
@ -2489,7 +2488,6 @@ class EventListPage(BasePage):
|
|||||||
|
|
||||||
# sort datalist by date of event
|
# sort datalist by date of event
|
||||||
datalist = sorted(datalist, key = self._getEventDate)
|
datalist = sorted(datalist, key = self._getEventDate)
|
||||||
total = len(datalist)
|
|
||||||
first_event = True
|
first_event = True
|
||||||
|
|
||||||
while datalist:
|
while datalist:
|
||||||
@ -2561,14 +2559,6 @@ class EventListPage(BasePage):
|
|||||||
# get person(s) for ColumnPerson
|
# get person(s) for ColumnPerson
|
||||||
self.complete_people(tcell, first_person, handle_list)
|
self.complete_people(tcell, first_person, handle_list)
|
||||||
|
|
||||||
# display total of the event if first_event is True
|
|
||||||
tcell = Html("td", class_ = "ColumnTotals", inline = True)
|
|
||||||
trow += tcell
|
|
||||||
if first_event:
|
|
||||||
tcell += total
|
|
||||||
else:
|
|
||||||
tcell += " "
|
|
||||||
|
|
||||||
_EVENT_DISPLAYED.append( gid )
|
_EVENT_DISPLAYED.append( gid )
|
||||||
first_event = False
|
first_event = False
|
||||||
datalist.remove("%s" % event_handle)
|
datalist.remove("%s" % event_handle)
|
||||||
|
Loading…
Reference in New Issue
Block a user