fixed bug in serializers, thanks Louis DaPrato
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.00.0 (2012-05-26 17:53:25) dev
|
Version 2.00.0 (2012-05-26 20:09:28) dev
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ def ics(events, title=None, link=None, timeshift=0):
|
|||||||
import datetime
|
import datetime
|
||||||
title = title or '(unkown)'
|
title = title or '(unkown)'
|
||||||
if link and not callable(link):
|
if link and not callable(link):
|
||||||
link = lambda item,prefix=link: prefix.replace('[id]',item['id'])
|
link = lambda item,prefix=link: prefix.replace('[id]',str(item['id']))
|
||||||
s = 'BEGIN:VCALENDAR'
|
s = 'BEGIN:VCALENDAR'
|
||||||
s += '\nVERSION:2.0'
|
s += '\nVERSION:2.0'
|
||||||
s += '\nX-WR-CALNAME:%s' % title
|
s += '\nX-WR-CALNAME:%s' % title
|
||||||
|
|||||||
Reference in New Issue
Block a user