code: def daily_table(context, day, start=8, end=20, increment=30):
      
      user = context['request'].user
      addable = CHECK_EVENT_PERM_FUNC(None, user)
      if 'calendar' in context:
          addable = addable and CHECK_CALENDAR_PERM_FUNC(context['calendar'], user)
      context['addable'] = addable
      day_part = day.get_time_slot(day.start + datetime.timedelta(hours=start), day.start + datetime.timedelta(hours=end))
      # get slots to display on the left
      slots = _cook_slots(day_part, increment)
      context['slots'] = slots
      return context
docs: Display a nice table with occurrences and action buttons.
        Arguments:
        start - hour at which the day starts
        end - hour at which the day ends
        increment - size of a time slot (in minutes)