예제 #1
0
def icalendar(request):
    from courses.bridge.rpi import export_schedule
    requested_crns = request.GET.getlist('crn')
    response = HttpResponse(export_schedule(requested_crns))
    response['Content-Type'] = 'text/calendar'
    response['Content-Disposition'] = 'attachment;filename=schedule.ics'
    return response
예제 #2
0
파일: views.py 프로젝트: Radzell/YACS
def icalendar(request):
    from courses.bridge.rpi import export_schedule
    requested_crns = request.GET.getlist('crn')
    response = HttpResponse(export_schedule(requested_crns))
    response['Content-Type'] = 'text/calendar'
    response['Content-Disposition'] = 'attachment;filename=schedule.ics'
    return response
예제 #3
0
파일: views.py 프로젝트: jinz/YACS
def icalendar(request, year, month):
    from courses.bridge.rpi import export_schedule
    requested_crns = request.GET.getlist('crn')
    response = HttpResponse(export_schedule(requested_crns))
    response['Content-Type'] = 'text/calendar'
    return response