[CMF-checkins] CVS: CMF/CMFStaging - LockTool.py:1.7
Sidnei da Silva
sidnei@x3ng.com.br
Fri, 1 Nov 2002 13:08:55 -0500
Update of /cvs-repository/CMF/CMFStaging
In directory cvs.zope.org:/tmp/cvs-serv13055
Modified Files:
LockTool.py
Log Message:
Minor fix. Let the user pass a message to unlock to tag the revision.
=== CMF/CMFStaging/LockTool.py 1.6 => 1.7 ===
--- CMF/CMFStaging/LockTool.py:1.6 Fri Jul 12 16:43:20 2002
+++ CMF/CMFStaging/LockTool.py Fri Nov 1 13:08:54 2002
@@ -98,7 +98,7 @@
security.declareProtected(UnlockObjects, 'unlock')
- def unlock(self, object):
+ def unlock(self, object, message=''):
'''Unlocks an object'''
locker = self.locker(object)
if not locker:
@@ -117,7 +117,7 @@
if self.auto_version:
vt = getToolByName(self, 'portal_versions', None)
if vt is not None:
- vt.checkin(object)
+ vt.checkin(object, message)
security.declarePublic('locker')