[CMF-checkins] CVS: CMF/CMFStaging/skins/staging - object_revert_version.py:1.2 object_version_control_form.pt:1.2
Shane Hathaway
shane@cvs.zope.org
Tue, 14 May 2002 14:01:10 -0400
Update of /cvs-repository/CMF/CMFStaging/skins/staging
In directory cvs.zope.org:/tmp/cvs-serv22148/skins/staging
Modified Files:
object_revert_version.py object_version_control_form.pt
Log Message:
Fixed tool names.
=== CMF/CMFStaging/skins/staging/object_revert_version.py 1.1 => 1.2 ===
##title=Revert to a specific revision of an object
-if context.LockTool.locked(context):
- context.LockTool.unlock(context)
+if context.portal_lock.locked(context):
+ context.portal_lock.unlock(context)
-context.StagingTool.revertToVersion(context, version_id)
+context.portal_versions.revertToVersion(context, version_id)
if REQUEST is not None:
- msg = 'Reverted to revision %s.' % version_id
+ msg = 'Reverted+to+revision+%s.' % version_id
view = 'object_version_control_form'
REQUEST.RESPONSE.redirect(
'%s/%s?portal_status_message=%s' % (
=== CMF/CMFStaging/skins/staging/object_version_control_form.pt 1.1 => 1.2 ===
<form action="." method="POST" tal:attributes="action here/absolute_url"
- tal:define="LockTool here/LockTool|nothing;
- isLockedOut python: LockTool and LockTool.isLockedOut(here)">
+ tal:define="lt here/portal_lock|nothing;
+ isLockedOut python: lt and lt.isLockedOut(here)">
<table>
<tr>
@@ -18,8 +18,8 @@
<th align="left">Message</th>
</tr>
-<tr tal:define="cur_id python: here.StagingTool.getVersionId(here)"
- tal:repeat="entry python: here.StagingTool.getLogEntries(here, 1)">
+<tr tal:define="cur_id python: here.portal_versions.getVersionId(here)"
+ tal:repeat="entry python: here.portal_versions.getLogEntries(here, 1)">
<td>
<input type="radio" name="version_id"