imip-agent

Change of imipweb/calendar.py

529:a7e8fd4378c2
imipweb/calendar.py
     1.1 --- a/imipweb/calendar.py	Sat May 16 01:03:51 2015 +0200
     1.2 +++ b/imipweb/calendar.py	Sat May 16 18:09:37 2015 +0200
     1.3 @@ -26,8 +26,7 @@
     1.4                              get_start_of_next_day, get_timestamp, ends_on_same_day, \
     1.5                              to_timezone
     1.6  from imiptools.period import add_day_start_points, add_empty_days, add_slots, \
     1.7 -                             convert_periods, get_scale, get_slots, get_spans, \
     1.8 -                             partition_by_day, Point
     1.9 +                             get_scale, get_slots, get_spans, partition_by_day, Point
    1.10  from imipweb.resource import Resource
    1.11  
    1.12  class CalendarPage(Resource):
    1.13 @@ -295,11 +294,10 @@
    1.14          # Obtain time point information for each group of periods.
    1.15  
    1.16          for periods in period_groups:
    1.17 -            convert_periods(periods, tzid)
    1.18  
    1.19              # Get the time scale with start and end points.
    1.20  
    1.21 -            scale = get_scale(periods)
    1.22 +            scale = get_scale(periods, tzid)
    1.23  
    1.24              # Get the time slots for the periods.
    1.25              # Time slots are collections of Point objects with lists of active