cw 3.6 api update
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 22 Jan 2010 15:00:36 +0100
changeset 152 284b84620da5
parent 151 3e2b1b234422
child 153 498dfd89eb34
cw 3.6 api update
views/secondary.py
--- a/views/secondary.py	Fri Dec 18 14:44:23 2009 +0100
+++ b/views/secondary.py	Fri Jan 22 15:00:36 2010 +0100
@@ -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())