Exemple #1
0
def index(request):
    """The view that gets brought up if you navigate to 'schedule'.

    Currently this just gets the weekly schedule for the current
    week.
    """
    return schedule_week_from_date(
        request,
        ury_start_on_date(to_monday(datetime.utcnow())))
Exemple #2
0
def schedule_day(request, year, month, day):
    """The day-in-detail schedule view, with the day provided in
    Year/Month/Day format.

    """
    return schedule_day_from_date(
        request,
        ury_start_on_date(date(
            year=int(year),
            month=int(month),
            day=int(day))))
Exemple #3
0
def today(request):
    """A view that shows the day schedule for today."""
    return schedule_day_from_date(
        request,
        ury_start_on_date(timezone.now()))