Commit 095acc89 authored by Hanno Schlichting's avatar Hanno Schlichting

Actually use the aq_base safety check

parent b6d27319
......@@ -122,11 +122,12 @@ class CatalogReport(StopWatch):
self.request = request
self.threshold = threshold
path = getattr(aq_parent(catalog), 'getPhysicalPath', None)
parent = aq_parent(catalog)
path = getattr(aq_base(parent), 'getPhysicalPath', None)
if path is None:
path = ('', 'NonPersistentCatalog')
else:
path = tuple(path())
path = tuple(parent.getPhysicalPath())
self.cid = path
def stop(self):
......
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