[CMF-checkins] CVS: CMF/CMFDefault/skins/content - file_edit.py:1.3
Yvo Schubbe
schubbe@web.de
Thu, 6 Mar 2003 05:51:18 -0500
Update of /cvs-repository/CMF/CMFDefault/skins/content
In directory cvs.zope.org:/tmp/cvs-serv15830/CMFDefault/skins/content
Modified Files:
file_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/file_edit.py 1.2 => 1.3 ===
--- CMF/CMFDefault/skins/content/file_edit.py:1.2 Sat Oct 6 19:06:47 2001
+++ CMF/CMFDefault/skins/content/file_edit.py Thu Mar 6 05:51:15 2003
@@ -1,5 +1,5 @@
## Script (Python) "file_edit"
-##parameters=precondition='', file='', choice=' Change '
+##parameters=precondition='', file='', change_and_view=''
##title=Edit a file
context.edit(
@@ -8,7 +8,7 @@
qst='portal_status_message=File+changed.'
-if choice == ' Change and View ':
+if change_and_view:
target_action = context.getTypeInfo().getActionById( 'view' )
else:
target_action = context.getTypeInfo().getActionById( 'edit' )