EventAggregator

Changeset

205:11aa32d2a3ec
2011-06-25 Paul Boddie raw files shortlog changelog graph 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.
TO_DO.txt (file) macros/EventAggregator.py (file)
     1.1 --- a/TO_DO.txt	Tue Jun 07 21:07:08 2011 +0200
     1.2 +++ b/TO_DO.txt	Sat Jun 25 22:11:49 2011 +0200
     1.3 @@ -31,4 +31,8 @@
     1.4  }}}
     1.5  
     1.6  Such events could then be presented using more sophisticated methods and
     1.7 -potentially be editable.
     1.8 +potentially be editable. To support direct editing, the parser would provide
     1.9 +a hidden form field indicating the location of the section in the Wiki text,
    1.10 +and the new event action would be enhanced to read existing events from the
    1.11 +indicated page region, populating the form fields with the data found in the
    1.12 +page.
     2.1 --- a/macros/EventAggregator.py	Tue Jun 07 21:07:08 2011 +0200
     2.2 +++ b/macros/EventAggregator.py	Sat Jun 25 22:11:49 2011 +0200
     2.3 @@ -1660,14 +1660,15 @@
     2.4  
     2.5              # Write unpositioned events.
     2.6  
     2.7 -            output.append(fmt.table_row(on=1, css_class="event-map-unpositioned"))
     2.8 -            output.append(fmt.table_cell(on=1))
     2.9 -
    2.10 -            output.append(fmt.heading(on=1, depth=2))
    2.11 -            output.append(fmt.text(_("Events not shown on the map")))
    2.12 -            output.append(fmt.heading(on=0, depth=2))
    2.13 -
    2.14 -            output.append(view.writeMapEventSummaries(unpositioned_events))
    2.15 +            if unpositioned_events:
    2.16 +                output.append(fmt.table_row(on=1, css_class="event-map-unpositioned"))
    2.17 +                output.append(fmt.table_cell(on=1))
    2.18 +
    2.19 +                output.append(fmt.heading(on=1, depth=2))
    2.20 +                output.append(fmt.text(_("Events not shown on the map")))
    2.21 +                output.append(fmt.heading(on=0, depth=2))
    2.22 +
    2.23 +                output.append(view.writeMapEventSummaries(unpositioned_events))
    2.24  
    2.25              # End of map view output.
    2.26