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): _______________________________________________ Zope-Checkins maillist - Zope-Checkins@zope.org https://mail.zope.org/mailman/listinfo/zope-checkins