# HG changeset patch # User Sylvain Thénault <sylvain.thenault@logilab.fr> # Date 1264168836 -3600 # Fri Jan 22 15:00:36 2010 +0100 # Node ID 284b84620da5902ffafab60be6d2d11b22b747ef # Parent 3e2b1b2344223b8d8248561214d26641d985485d cw 3.6 api update diff --git a/views/secondary.py b/views/secondary.py --- a/views/secondary.py +++ b/views/secondary.py @@ -233,7 +233,7 @@ reldata = [] w = reldata.append if 'comments' in self._cw.vreg.schema and 'BlogEntry' in self._cw.vreg.schema.rschema('comments').objects(): - count = self.req.execute('Any COUNT(C) WHERE C comments B, B eid %(x)s', + count = self._cw.execute('Any COUNT(C) WHERE C comments B, B eid %(x)s', {'x': entity.eid}, 'x')[0][0] if count: url = xml_escape(entity.absolute_url())