generic.ics 518 B

123456789101112131415161718
  1. {{
  2. ###
  3. # response._vars contains the dictionary returned by the controller action
  4. # Assuming something like:
  5. #
  6. # db.define_table('event',
  7. # Field('title'),
  8. # Field('start_datetime','datetime'),
  9. # Field('stop_datetime','datetime'))
  10. # events = db(db.event).select()
  11. #
  12. # Aor this to work the action must return something like
  13. #
  14. # dict(events=events, title='title',link=URL('action'),timeshift=0)
  15. #
  16. ###
  17. from gluon.serializers import ics}}{{=XML(ics(**response._vars))}}