[CMF-checkins] CVS: CMF/CMFDefault/skins/content - image_edit.py:1.3
Yvo Schubbe
schubbe@web.de
Thu, 6 Mar 2003 05:51:52 -0500
Update of /cvs-repository/CMF/CMFDefault/skins/content
In directory cvs.zope.org:/tmp/cvs-serv15993/CMFDefault/skins/content
Modified Files:
image_edit.py
Log Message:
Merged yuppie-collector122-branch:
- Added i18n attributes. (Collector #122)
- Made scripts independent of submit button values.
- Added transition_form.
=== CMF/CMFDefault/skins/content/image_edit.py 1.2 => 1.3 ===
--- CMF/CMFDefault/skins/content/image_edit.py:1.2 Sat Oct 6 19:06:47 2001
+++ CMF/CMFDefault/skins/content/image_edit.py Thu Mar 6 05:51:51 2003
@@ -1,5 +1,5 @@
## Script (Python) "image_edit"
-##parameters=precondition='', file='', choice=' Change '
+##parameters=precondition='', file='', change_and_view=''
##title=Edit an image
context.edit(
@@ -8,7 +8,7 @@
qst='portal_status_message=Image+changed.'
-if choice == ' Change and View ':
+if change_and_view:
target_action = context.getTypeInfo().getActionById( 'view' )
else:
target_action = context.getTypeInfo().getActionById( 'edit' )