# 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. context.edit( precondition=precondition, file=file) context.manage_changeProperties({'formatted_title':formatted_title, 'long_description':long_description, 'rank':rank,'content_type':content_type, 'num_of_header_rows':num_of_header_rows, 'num_of_header_cols':num_of_header_cols, 'width':width,'border':border, 'balanced':balanced,'filler':filler, 'html_allowed':html_allowed}) context.setTitle(title) context.setDescription(description) context.setFormat(content_type) qst='portal_status_message=File+changed.' if choice == ' Change and View ': target_action = context.getTypeInfo().getActionById( 'view' ) else: target_action = context.getTypeInfo().getActionById( 'edit' ) context.REQUEST.RESPONSE.redirect( '%s/%s?%s' % ( context.absolute_url() , target_action , qst ) )