Log message for revision 115352: Factor out cid calculation Changed: U Zope/trunk/src/Products/ZCatalog/plan.py
-=- Modified: Zope/trunk/src/Products/ZCatalog/plan.py =================================================================== --- Zope/trunk/src/Products/ZCatalog/plan.py 2010-08-01 20:42:39 UTC (rev 115351) +++ Zope/trunk/src/Products/ZCatalog/plan.py 2010-08-01 20:43:56 UTC (rev 115352) @@ -116,14 +116,16 @@ self.query = query self.key = make_key(catalog, query) self.threshold = threshold + self.cid = self.get_id() - parent = aq_parent(catalog) + def get_id(self): + parent = aq_parent(self.catalog) path = getattr(aq_base(parent), 'getPhysicalPath', None) if path is None: path = ('', 'NonPersistentCatalog') else: path = tuple(parent.getPhysicalPath()) - self.cid = path + return path def init_timer(self): self.res = [] _______________________________________________ Zope-Checkins maillist - Zope-Checkins@zope.org https://mail.zope.org/mailman/listinfo/zope-checkins