generic.ics

This commit is contained in:
Massimo Di Pierro
2012-04-05 18:03:55 -05:00
parent aa45b64d8f
commit 3798c8f796
3 changed files with 53 additions and 13 deletions
+17
View File
@@ -0,0 +1,17 @@
{{
###
# response._vars contains the dictionary returned by the controller action
# Assuming something like:
#
# db.define_table('event',
# Field('title'),
# Field('start_datetime','datetime'),
# Field('stop_datetime','datetime'))
# events = db(db.event).select()
#
# Aor this to work the action must return something like
#
# dict(events=events, title='title',link=URL('action'),timeshift=0)
#
###
from gluon.serializers import ics}}{{=XML(ics(**response._vars))}}