Back to index

plone3  3.1.7
event_view.py
Go to the documentation of this file.
00001 ##parameters=
00002 ##
00003 from Products.CMFDefault.utils import decode
00004 
00005 options = {}
00006 options['title'] = context.Title()
00007 options['description'] = context.Description()
00008 options['contact_name'] = context.contact_name
00009 options['location'] = context.location
00010 options['contact_email'] = context.contact_email
00011 options['event_types'] = context.Subject()
00012 options['contact_phone'] = context.contact_phone
00013 options['event_url'] = context.event_url
00014 start = context.start()
00015 options['start_date'] = DateTime.Date(start)
00016 options['start_time'] = DateTime.Time(start)
00017 stop = context.end()
00018 options['stop_date'] = DateTime.Date(stop)
00019 options['stop_time'] = DateTime.Time(stop)
00020 
00021 return context.event_view_template(**decode(options, script))