# HG changeset patch # User Paul Boddie # Date 1300134675 -3600 # Node ID 1ded102b199362bea640b97d779c8dd77f61c505 # Parent 0b86654d87d9c066b4937c68bb7a521a460527ce Improved vertical space usage by not separating events in the month view according to location. diff -r 0b86654d87d9 -r 1ded102b1993 EventAggregatorSupport.py --- a/EventAggregatorSupport.py Sun Feb 20 23:46:37 2011 +0100 +++ b/EventAggregatorSupport.py Mon Mar 14 21:31:15 2011 +0100 @@ -928,15 +928,20 @@ # Find the coverage of this period for the event. - event_location = event_details.get("location") + # For day views, each location has its own slot, but for month + # views, all locations are pooled together since having separate + # slots for each location can lead to poor usage of vertical space. + + if resolution == "datetime": + event_location = event_details.get("location") + else: + event_location = None # Update the overall coverage. full_coverage.insert_in_order(event) # Add a new events list for a new location. - # NOTE: Consider not doing this for month views, since it can lead - # NOTE: to poor usage of space. # Locations can be unspecified, thus None refers to all unlocalised # events.