Commit 99070b0d authored by Chris Withers's avatar Chris Withers

if it's inefficient, don't do it unless it's used ;-)

parent 34345158
......@@ -485,11 +485,10 @@ class ZCatalog(Folder, Persistent, Implicit):
name = (name,)
paths = self._catalog.uids.keys()
num_paths = len(paths) # inefficient
i = 0
if pghandler:
pghandler.init('reindexing %s' % name, num_paths)
pghandler.init('reindexing %s' % name, len(paths))
for p in paths:
i+=1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment