[CMF-checkins] CVS: CMF/CMFDefault/skins/content - document_edit.py:1.4.20.1 document_edit_form.dtml:1.6.28.1 file_edit.py:1.2.56.1 file_edit_form.dtml:1.4.54.1
Yvo Schubbe
schubbe@web.de
Wed, 26 Feb 2003 11:18:02 -0500
Update of /cvs-repository/CMF/CMFDefault/skins/content
In directory cvs.zope.org:/tmp/cvs-serv31736/CMFDefault/skins/content
Modified Files:
Tag: yuppie-collector122-branch
document_edit.py document_edit_form.dtml file_edit.py
file_edit_form.dtml
Log Message:
- made scripts independent of submit button values
- removed tabs
=== CMF/CMFDefault/skins/content/document_edit.py 1.4 => 1.4.20.1 ===
--- CMF/CMFDefault/skins/content/document_edit.py:1.4 Sun Jul 21 20:01:56 2002
+++ CMF/CMFDefault/skins/content/document_edit.py Wed Feb 26 11:18:01 2003
@@ -1,5 +1,5 @@
## Script (Python) "document_edit"
-##parameters=text_format, text, file='', SafetyBelt='', choice=' Change '
+##parameters=text_format, text, file='', SafetyBelt='', change_and_view=''
##title=Edit a document
try:
from Products.CMFDefault.utils import scrubHTML
@@ -11,7 +11,7 @@
)
qst='portal_status_message=Document+changed.'
- if choice == ' Change and View ':
+ if change_and_view:
target_action = context.getTypeInfo().getActionById( 'view' )
else:
target_action = context.getTypeInfo().getActionById( 'edit' )
=== CMF/CMFDefault/skins/content/document_edit_form.dtml 1.6 => 1.6.28.1 ===
--- CMF/CMFDefault/skins/content/document_edit_form.dtml:1.6 Mon Apr 1 06:22:30 2002
+++ CMF/CMFDefault/skins/content/document_edit_form.dtml Wed Feb 26 11:18:01 2003
@@ -45,12 +45,12 @@
<label for="cb_structuredtext">structured-text</label>
<input type="radio" name="text_format" value="plain"
<dtml-if "text_format=='plain'">checked</dtml-if>
- id="cb_html" />
- <label for="cb_html">plain text</label>
+ id="cb_html" />
+ <label for="cb_html">plain text</label>
<input type="radio" name="text_format" value="html"
<dtml-if "text_format=='html'">checked</dtml-if>
- id="cb_html" />
- <label for="cb_html">html</label>
+ id="cb_html" />
+ <label for="cb_html">html</label>
</td>
</tr>
@@ -72,8 +72,8 @@
<tr>
<td> <br> </td>
<td>
- <input type="submit" name="choice" value=" Change ">
- <input type="submit" name="choice" value=" Change and View ">
+ <input type="submit" name="change" value=" Change ">
+ <input type="submit" name="change_and_view" value=" Change and View ">
</td>
</tr>
</table>
=== CMF/CMFDefault/skins/content/file_edit.py 1.2 => 1.2.56.1 ===
--- CMF/CMFDefault/skins/content/file_edit.py:1.2 Sat Oct 6 19:06:47 2001
+++ CMF/CMFDefault/skins/content/file_edit.py Wed Feb 26 11:18:01 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' )
=== CMF/CMFDefault/skins/content/file_edit_form.dtml 1.4 => 1.4.54.1 ===
--- CMF/CMFDefault/skins/content/file_edit_form.dtml:1.4 Wed Dec 5 18:22:41 2001
+++ CMF/CMFDefault/skins/content/file_edit_form.dtml Wed Feb 26 11:18:01 2003
@@ -37,8 +37,8 @@
<tr>
<td> <br> </td>
<td>
- <input type="submit" name="choice" value=" Change ">
- <input type="submit" name="choice" value=" Change and View ">
+ <input type="submit" name="change" value=" Change ">
+ <input type="submit" name="change_and_view" value=" Change and View ">
</td>
</tr>