[CMF-checkins] CVS: CMF/CMFStaging - LockTool.py:1.10
Brian Lloyd
brian@zope.com
Mon, 24 Feb 2003 14:27:03 -0500
Update of /cvs-repository/CMF/CMFStaging
In directory cvs.zope.org:/tmp/cvs-serv22524
Modified Files:
LockTool.py
Log Message:
Add isLockable API.
=== CMF/CMFStaging/LockTool.py 1.9 => 1.10 ===
--- CMF/CMFStaging/LockTool.py:1.9 Tue Feb 11 12:06:49 2003
+++ CMF/CMFStaging/LockTool.py Mon Feb 24 14:27:02 2003
@@ -169,6 +169,11 @@
return 0
return not not self.locker(object)
+ security.declarePublic('isLockable')
+ def isLockable(self, object):
+ """Return true if object supports locking, regardless of lock
+ state or whether the current user can actually lock."""
+ return WriteLockInterface.isImplementedBy(object)
security.declarePublic('canLock')
def canLock(self, object):