# HG changeset patch # User Paul Boddie # Date 1309032709 -7200 # Node ID 11aa32d2a3eca2f46b9999f460f518a89d0e2a88 # Parent db25078d31b463877c2be3bb181f739f19e63b43 If no unpositioned events are found for the map view, the section displaying such events is hidden. Added notes about event sections and editing strategies. diff -r db25078d31b4 -r 11aa32d2a3ec TO_DO.txt --- a/TO_DO.txt Tue Jun 07 21:07:08 2011 +0200 +++ b/TO_DO.txt Sat Jun 25 22:11:49 2011 +0200 @@ -31,4 +31,8 @@ }}} Such events could then be presented using more sophisticated methods and -potentially be editable. +potentially be editable. To support direct editing, the parser would provide +a hidden form field indicating the location of the section in the Wiki text, +and the new event action would be enhanced to read existing events from the +indicated page region, populating the form fields with the data found in the +page. diff -r db25078d31b4 -r 11aa32d2a3ec macros/EventAggregator.py --- a/macros/EventAggregator.py Tue Jun 07 21:07:08 2011 +0200 +++ b/macros/EventAggregator.py Sat Jun 25 22:11:49 2011 +0200 @@ -1660,14 +1660,15 @@ # Write unpositioned events. - output.append(fmt.table_row(on=1, css_class="event-map-unpositioned")) - output.append(fmt.table_cell(on=1)) - - output.append(fmt.heading(on=1, depth=2)) - output.append(fmt.text(_("Events not shown on the map"))) - output.append(fmt.heading(on=0, depth=2)) - - output.append(view.writeMapEventSummaries(unpositioned_events)) + if unpositioned_events: + output.append(fmt.table_row(on=1, css_class="event-map-unpositioned")) + output.append(fmt.table_cell(on=1)) + + output.append(fmt.heading(on=1, depth=2)) + output.append(fmt.text(_("Events not shown on the map"))) + output.append(fmt.heading(on=0, depth=2)) + + output.append(view.writeMapEventSummaries(unpositioned_events)) # End of map view output.