[CMF-checkins] CVS: CMF/CMFDefault/skins/content - newsitem_edit.py:1.5
Yvo Schubbe
schubbe@web.de
Thu, 6 Mar 2003 05:52:35 -0500
Update of /cvs-repository/CMF/CMFDefault/skins/content
In directory cvs.zope.org:/tmp/cvs-serv16208/CMFDefault/skins/content
Modified Files:
newsitem_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/newsitem_edit.py 1.4 => 1.5 ===
--- CMF/CMFDefault/skins/content/newsitem_edit.py:1.4 Sun Jul 21 20:01:56 2002
+++ CMF/CMFDefault/skins/content/newsitem_edit.py Thu Mar 6 05:52:33 2003
@@ -1,5 +1,5 @@
## Script (Python) "newsitem_edit"
-##parameters=text, description, text_format=None, choice=' Change '
+##parameters=text, description, text_format=None, change_and_view=''
##title=Edit a news item
try:
from Products.CMFDefault.utils import scrubHTML
@@ -10,7 +10,7 @@
qst='portal_status_message=News+Item+changed.'
- if choice == ' Change and View ':
+ if change_and_view:
target_action = context.getTypeInfo().getActionById( 'view' )
else:
target_action = context.getTypeInfo().getActionById( 'edit' )