18 lines
518 B
Plaintext
18 lines
518 B
Plaintext
{{
|
|
###
|
|
# 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))}}
|