# Copyright © 2004 Saugus.net, Inc. # All Rights Reserved. # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS # FOR A PARTICULAR PURPOSE. from DateTime import DateTime try: price=context.getPriceAsInt(pricePerPerson) rain_date=DateTime('%s %s, %s'%(rainDateMo,rainDateDay,rainDateYear)) context.edit(title=title , description=description , eventType=event_type , effectiveDay=effectiveDay , effectiveMo=effectiveMo , effectiveYear=effectiveYear , expirationDay=expirationDay , expirationMo=expirationMo , expirationYear=expirationYear , start_time=start_time , startAMPM=startAMPM , stopAMPM=stopAMPM , stop_time=stop_time , location=location , contact_name=contact_name , contact_email=contact_email , contact_phone=contact_phone , event_url=event_url ) context.manage_changeProperties({'formatted_title':formatted_title, 'long_description':long_description, 'rank':rank, 'price':price, 'rain_date':rain_date, 'performers':performers, 'event_email':event_email, 'event_phone':event_phone, 'event_fax':event_fax, 'contact_night_phone':contact_night_phone, 'early_birds_okay':early_birds_okay, 'html_allowed':html_allowed}) context.setTitle(title) context.setDescription(description) context.setLanguage(language) except: RESPONSE.redirect('%s/calendar_event_edit_form' % context.absolute_url() + '?portal_status_message=Oops!' ) else: RESPONSE.redirect('%s/calendar_event_view' % context.absolute_url())