[CMF-checkins] CVS: Products/CMFDefault/skins/content - metadata_edit.py:1.2
Tres Seaver
tseaver@zope.com
Mon, 13 Aug 2001 22:05:04 -0400
Update of /cvs-repository/Products/CMFDefault/skins/content
In directory cvs.zope.org:/tmp/cvs-serv2225/CMFDefault/skins/content
Modified Files:
metadata_edit.py
Log Message:
- Avoid returning from form POST, as the post variables mess with the
returned template; use the safer redirect instead.
=== Products/CMFDefault/skins/content/metadata_edit.py 1.1 => 1.2 ===
action_path = context.getTypeInfo().getActionById( action_id )
-action_method = context.restrictedTraverse( action_path )
-
-return action_method( context
- , context.REQUEST
- , portal_status_message='Metadata changed.'
- )
+context.REQUEST['RESPONSE'].redirect(
+ '%s/%s?portal_status_message=Metadata+changed.'
+ % ( context.absolute_url(), action_path ) )