SP/web2py/applications/welcome/views/generic.ics

18 lines
518 B
Plaintext
Raw Normal View History

2018-10-25 15:33:07 +00:00
{{
###
# 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))}}