Skip to content

Commit

Permalink
Basic iCal support, untested however.
Browse files Browse the repository at this point in the history
  • Loading branch information
dokterbob committed Oct 17, 2008
1 parent a808e65 commit 7f83e87
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions agenda/urls.py
Expand Up @@ -16,3 +16,17 @@
url(r'^(?P<year>\d{4})/$', 'archive', info_dict, name='agenda-archive-year'),
url(r'^$', 'index', info_dict, name='agenda-index'),
)

ical_dict = {
'queryset' : info_dict['queryset'],
'date_field' : info_dict['date_field'],
'ical_filename' : 'calendar.ics',
'last_modified_field' : 'mod_date',
'location_field' : 'location',
'start_time_field' : 'start_time',
'end_time_field' : 'end_time',
}

urlpatterns += patterns('agenda.views.vobject_django',
url(r'^calendar.ics$', 'icalendar', ical_dict, name='agenda-icalendar'),
)
2 changes: 1 addition & 1 deletion agenda/views/date_based.py
Expand Up @@ -114,7 +114,7 @@ def index(request, queryset, date_field,
template_name, template_object_name, template_loader,
num_objects, extra_context, True,
mimetype, context_processors)

def object_detail(request, queryset, date_field,
year, month, day, slug,
template_name=None, template_object_name='object', template_loader=loader,
Expand Down

0 comments on commit 7f83e87

Please sign in to comment.