[CMF-checkins] CVS: CMF/CMFStaging/skins/staging - object_stage.py:1.2 object_stage_form.pt:1.2 object_stage_box.pt:NONE

Shane Hathaway cvs-admin at zope.org
Fri Oct 31 12:19:52 EST 2003


Update of /cvs-repository/CMF/CMFStaging/skins/staging
In directory cvs.zope.org:/tmp/cvs-serv7588

Modified Files:
	object_stage.py object_stage_form.pt 
Removed Files:
	object_stage_box.pt 
Log Message:
Converted object_stage_form into a full-page view.



=== CMF/CMFStaging/skins/staging/object_stage.py 1.1 => 1.2 ===
--- CMF/CMFStaging/skins/staging/object_stage.py:1.1	Thu Oct 30 17:05:49 2003
+++ CMF/CMFStaging/skins/staging/object_stage.py	Fri Oct 31 12:19:51 2003
@@ -1,6 +1,6 @@
-##parameters=stage_name, comments, REQUEST=None
+##parameters=stage_names, comments, REQUEST=None
 ##title=Stage an object
 
-context.portal_staging.updateStages2(context, [stage_name], comments)
+context.portal_staging.updateStages2(context, stage_names, comments)
 if REQUEST is not None:
     REQUEST.RESPONSE.redirect(context.absolute_url() + "/view")


=== CMF/CMFStaging/skins/staging/object_stage_form.pt 1.1 => 1.2 ===
--- CMF/CMFStaging/skins/staging/object_stage_form.pt:1.1	Thu Oct 30 17:05:49 2003
+++ CMF/CMFStaging/skins/staging/object_stage_form.pt	Fri Oct 31 12:19:51 2003
@@ -9,17 +9,43 @@
 <form action="object_stage" method="POST"
   tal:attributes="action string:${here/absolute_url}/object_stage">
 
-<input type="hidden" name="stage_name"
-  tal:attributes="value request/stage_name" />
+<h3 class="TitleSection">Stage</h3>
 
-<h2>Send to
-<span tal:replace="python:
-  here.portal_staging.getStageTitle(request['stage_name'])">Development</span>
-</h2>
+<p>Select stages to update:</p>
+
+<table>
+
+<tr>
+ <th></th>
+ <th align="left">Stage</th>
+ <th align="left">Current revision</th>
+</tr>
+
+<tr tal:repeat="stats python: here.portal_staging.getObjectStats(here)">
+<td>
+ <div tal:condition="not:stats/is_source">
+ <input type="checkbox" name="stage_names:list"
+   tal:attributes="value stats/name; disabled not:stats/stageable" />
+ </div>
+</td>
+<td>
+ <span tal:replace="stats/title">Development</span>
+</td>
+<td>
+ <div tal:condition="stats/exists">
+ Revision <span tal:content="stats/revision">1+</span>
+ (<a href="#"
+   tal:attributes="href string:object_preview_stage?stage_name=${stats/name}"
+   >preview</a>)
+ </div>
+</td>
+</tr>
+
+</table>
 
 <p>
 Comments: <br />
-<textarea name="comments" rows="5" cols="60" style="width: 100%;"></textarea>
+<textarea name="comments" rows="3" cols="60" style="width: 100%;"></textarea>
 </p>
 
 <p>

=== Removed File CMF/CMFStaging/skins/staging/object_stage_box.pt ===




More information about the CMF-checkins mailing list