[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/locking/ whitespace

Christian Zagrodnick cz at gocept.com
Tue Mar 6 03:42:54 EST 2007


Log message for revision 72999:
  whitespace

Changed:
  U   Zope3/trunk/src/zope/app/locking/adapter.py
  U   Zope3/trunk/src/zope/app/locking/interfaces.py
  U   Zope3/trunk/src/zope/app/locking/storage.py

-=-
Modified: Zope3/trunk/src/zope/app/locking/adapter.py
===================================================================
--- Zope3/trunk/src/zope/app/locking/adapter.py	2007-03-06 08:30:57 UTC (rev 72998)
+++ Zope3/trunk/src/zope/app/locking/adapter.py	2007-03-06 08:42:53 UTC (rev 72999)
@@ -14,7 +14,7 @@
 """
 Locking adapter implementation.
 
-$Id: $
+$Id$
 """
 
 from zope import interface, component, event
@@ -44,7 +44,7 @@
     # this MUST be a trusted adapter!!
 
     interface.implements(interfaces.ILockable)
-    
+
     def __init__(self, context):
         self.storage = component.getUtility(interfaces.ILockStorage)
         self.context = context
@@ -130,14 +130,14 @@
         self._locking = LockingAdapterFactory(target)
         self.lockable = self._locking is not None
 
+    @property
     def lockedOut(self):
         return (self._locking is not None) and self._locking.isLockedOut()
-    lockedOut = property(lockedOut)
 
+    @property
     def locked(self):
         return (self._locking is not None) and self._locking.locked()
-    locked = property(locked)
 
+    @property
     def ownLock(self):
         return (self._locking is not None) and self._locking.ownLock()
-    ownLock = property(ownLock)

Modified: Zope3/trunk/src/zope/app/locking/interfaces.py
===================================================================
--- Zope3/trunk/src/zope/app/locking/interfaces.py	2007-03-06 08:30:57 UTC (rev 72998)
+++ Zope3/trunk/src/zope/app/locking/interfaces.py	2007-03-06 08:42:53 UTC (rev 72999)
@@ -14,7 +14,7 @@
 """
 Locking interfaces
 
-$Id: $
+$Id$
 """
 from zope import interface, schema
 
@@ -118,7 +118,7 @@
     """
     A lock storage lets you store information about locks in a central place
     """
-                    
+
     def getLock(object):
         """
         Get the current lock for an object.
@@ -145,7 +145,7 @@
     """An object has been locked"""
 
     lock = interface.Attribute("The lock set on the object")
-    
+
 class IUnlockedEvent(IObjectEvent):
     """An object has been unlocked"""
 

Modified: Zope3/trunk/src/zope/app/locking/storage.py
===================================================================
--- Zope3/trunk/src/zope/app/locking/storage.py	2007-03-06 08:30:57 UTC (rev 72998)
+++ Zope3/trunk/src/zope/app/locking/storage.py	2007-03-06 08:42:53 UTC (rev 72999)
@@ -14,7 +14,7 @@
 """
 Lock storage implementation.
 
-$Id: $
+$Id$
 """
 
 import time
@@ -61,7 +61,7 @@
     """
 
     interface.implements(interfaces.ILockStorage, interfaces.ILockTracker)
-    
+
     def __init__(self):
         self.timeouts = IOBTree()
         self.locks = OOBTree()
@@ -72,7 +72,7 @@
                 % (__name__, __name__))
 
     # ILockTracker implementation
-    
+
     def getLocksForPrincipal(self, principal_id):
         return self._currentLocks(principal_id)
 
@@ -82,7 +82,7 @@
     def _currentLocks(self, principal_id=None):
         """
         Helper method for getAllLocks and getLocksForPrincipal.
-        
+
         Return the currently active locks, possibly filtered by principal.
         """
         result = []
@@ -95,7 +95,7 @@
         return result
 
     # ILockStorage implementation
-                    
+
     def getLock(self, object):
         """
         Get the current lock for an object.



More information about the Zope3-Checkins mailing list