[Zope-Checkins] SVN: Zope/branches/andig-catalog-report/src/Products/ZCatalog/CatalogReport.py Less generic name

Hanno Schlichting hannosch at hannosch.eu
Sat Jul 24 11:43:24 EDT 2010


Log message for revision 115020:
  Less generic name
  

Changed:
  U   Zope/branches/andig-catalog-report/src/Products/ZCatalog/CatalogReport.py

-=-
Modified: Zope/branches/andig-catalog-report/src/Products/ZCatalog/CatalogReport.py
===================================================================
--- Zope/branches/andig-catalog-report/src/Products/ZCatalog/CatalogReport.py	2010-07-24 15:42:41 UTC (rev 115019)
+++ Zope/branches/andig-catalog-report/src/Products/ZCatalog/CatalogReport.py	2010-07-24 15:43:23 UTC (rev 115020)
@@ -17,7 +17,7 @@
 
 from Products.PluginIndexes.interfaces import IUniqueValueIndex
 
-writelock = allocate_lock()
+reportlock = allocate_lock()
 reports = {}
 
 MAX_DISTINCT_VALUES = 10
@@ -149,7 +149,7 @@
         if res[0] < self.threshold:
             return
         
-        writelock.acquire()
+        reportlock.acquire()
         try:
             if not reports.has_key(self.cid):
                 reports[self.cid] = {}
@@ -163,15 +163,15 @@
                 reports[self.cid][key] = (1,res[0],res)
 
         finally:
-            writelock.release()
+            reportlock.release()
 
 
     def reset(self):
-        writelock.acquire()
+        reportlock.acquire()
         try:
             reports[self.cid] = {}
         finally:
-            writelock.release()        
+            reportlock.release()        
 
 
     def report(self):



More information about the Zope-Checkins mailing list