[notification] we should use unsafe_execute here stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 15 Feb 2010 15:22:01 +0100
branchstable
changeset 4584 eef17cfcfa9c
parent 4583 356f08325072
child 4585 912aba7e6400
[notification] we should use unsafe_execute here
hooks/notification.py
--- a/hooks/notification.py	Mon Feb 15 15:20:45 2010 +0100
+++ b/hooks/notification.py	Mon Feb 15 15:22:01 2010 +0100
@@ -126,7 +126,7 @@
             rqlsel.append(var)
             rqlrestr.append('X %s %s' % (attr, var))
         rql = 'Any %s WHERE %s' % (','.join(rqlsel), ','.join(rqlrestr))
-        rset = session.execute(rql, {'x': self.entity.eid}, 'x')
+        rset = session.unsafe_execute(rql, {'x': self.entity.eid}, 'x')
         for i, attr in enumerate(attrs):
             oldvalue = rset[0][i]
             newvalue = self.entity[attr]