[CMF-checkins] CVS: CMF/CMFStaging - LockTool.py:1.15

Shane Hathaway shane at zope.com
Fri Jan 23 10:16:16 EST 2004


Update of /cvs-repository/CMF/CMFStaging
In directory cvs.zope.org:/tmp/cvs-serv4915

Modified Files:
	LockTool.py 
Log Message:
The autolock method is not needed after all.


=== CMF/CMFStaging/LockTool.py 1.14 => 1.15 ===
--- CMF/CMFStaging/LockTool.py:1.14	Tue Jan 13 16:45:37 2004
+++ CMF/CMFStaging/LockTool.py	Fri Jan 23 10:16:15 2004
@@ -105,19 +105,6 @@
         obj.wl_setLock(lockitem.getLockToken(), lockitem)
 
 
-    security.declarePublic('autolock')
-    def autolock(self, obj=None):
-        """Tries to lock an object, swallowing LockingErrors and Unauthorized.
-        """
-        if obj is None:
-            obj = aq_parent(self)
-        try:
-            self.lock(obj)
-        except (LockingError, Unauthorized):
-            return 0
-        return 1
-
-
     security.declarePublic('breaklock')
     def breaklock(self, obj, message=''):
         """Breaks the lock in an emergency.




More information about the CMF-checkins mailing list