Back to index

plone3  3.1.7
event_edit_control.py
Go to the documentation of this file.
00001 ##parameters=title=None, description=None, event_type=None, effectiveDay=None, effectiveMo=None, effectiveYear=None, expirationDay=None, expirationMo=None, expirationYear=None, start_time=None, startAMPM=None, stop_time=None, stopAMPM=None, location=None, contact_name=None, contact_email=None, contact_phone=None, event_url=None, **kw
00002 ##
00003 from Products.CMFCalendar.exceptions import ResourceLockedError
00004 from Products.CMFCalendar.utils import Message as _
00005 
00006 try:
00007     context.edit(title, description, event_type, effectiveDay, effectiveMo,
00008                  effectiveYear, expirationDay, expirationMo, expirationYear,
00009                  start_time, startAMPM, stop_time, stopAMPM, location,
00010                  contact_name, contact_email, contact_phone, event_url)
00011     return context.setStatus(True, _(u'Event changed.'))
00012 except ResourceLockedError, errmsg:
00013     return context.setStatus(False, errmsg)