# HG changeset patch # User Paul Boddie # Date 1371425070 -7200 # Node ID 7d7cf7f9d5ca2bba6d4539d48c472199198b2051 # Parent d762b8e38aca2b862f7418bb0b09a019577ee9cf Introduced row grouping in the calendar; added summary attributes to tables. diff -r d762b8e38aca -r 7d7cf7f9d5ca EventAggregatorSupport/View.py --- a/EventAggregatorSupport/View.py Mon Jun 17 00:33:34 2013 +0200 +++ b/EventAggregatorSupport/View.py Mon Jun 17 01:24:30 2013 +0200 @@ -1644,7 +1644,7 @@ # Start of table view output. - append(fmt.table(on=1, attrs={"tableclass" : "event-table"})) + append(fmt.table(on=1, attrs={"tableclass" : "event-table", "summary" : _("A table of events")})) append(fmt.table_row(on=1)) append(fmt.table_cell(on=1, attrs={"class" : "event-table-heading"})) @@ -1838,7 +1838,7 @@ map_identifier = "map-%s" % self.getIdentifier() append(fmt.div(on=1, css_class="event-map", id=map_identifier)) - append(fmt.table(on=1)) + append(fmt.table(on=1, attrs={"summary" : _("A map showing events")})) append(self.writeMapTableHeading()) @@ -2029,7 +2029,7 @@ # Output a month. - append(fmt.table(on=1, attrs={"tableclass" : "event-month"})) + append(fmt.table(on=1, attrs={"tableclass" : "event-month", "summary" : _("A table showing a calendar month")}})) # Either write a month heading or produce links for navigable # calendars. @@ -2062,6 +2062,12 @@ full_coverage, week_slots = getCoverage( getEventsInPeriod(all_shown_events, getCalendarPeriod(week_start, week_end))) + # Make a new table region. + # NOTE: Moin opens a "tbody" element in the table method. + + append(fmt.rawHTML("")) + append(fmt.rawHTML("")) + # Output a week, starting with the day numbers. append(self.writeDayNumbers(first_day, number_of_days, month, full_coverage)) @@ -2081,6 +2087,7 @@ first_day += 7 # End of month. + # NOTE: Moin closes a "tbody" element in the table method. append(fmt.table(on=0)) @@ -2092,7 +2099,7 @@ for date in self.first.days_until(self.last): - append(fmt.table(on=1, attrs={"tableclass" : "event-calendar-day"})) + append(fmt.table(on=1, attrs={"tableclass" : "event-calendar-day", "summary" : _("A table showing a calendar day")}})) full_coverage, day_slots = getCoverage( getEventsInPeriod(all_shown_events, getCalendarPeriod(date, date)), "datetime")