[Zope-Checkins] SVN: Zope/branches/andig-catalog-report/src/Products/ZCatalog/CatalogReport.py Actually use the aq_base safety check
Hanno Schlichting
hannosch at hannosch.eu
Sat Jul 24 13:18:18 EDT 2010
Log message for revision 115037:
Actually use the aq_base safety check
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 17:16:22 UTC (rev 115036)
+++ Zope/branches/andig-catalog-report/src/Products/ZCatalog/CatalogReport.py 2010-07-24 17:18:18 UTC (rev 115037)
@@ -122,11 +122,12 @@
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):
More information about the Zope-Checkins
mailing list