fixed problem with ics serializer, thanks Amber
This commit is contained in:
@@ -1 +1 @@
|
||||
Version 2.00.0 (2012-05-25 22:29:04) dev
|
||||
Version 2.00.0 (2012-05-26 11:15:06) dev
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user