fixed problem with ics serializer, thanks Amber

This commit is contained in:
Massimo Di Pierro
2012-05-26 11:15:52 -05:00
parent 093b3590e9
commit 07e61fc00f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.00.0 (2012-05-25 22:29:04) dev
Version 2.00.0 (2012-05-26 11:15:06) dev
+1 -1
View File
@@ -68,7 +68,7 @@ def ics(events, title=None, link=None, timeshift=0):
import datetime
title = title or '(unkown)'
if link and not callable(link):
link = lambda item: link +'/%s' % link['id']
link = lambda item,prefix=link: prefix.replace('[id]',item['id'])
s = 'BEGIN:VCALENDAR'
s += '\nVERSION:2.0'
s += '\nX-WR-CALNAME:%s' % title