# HG changeset patch # User Sylvain Thénault # Date 1266243721 -3600 # Node ID eef17cfcfa9c5548a718b6ae7a579aa28da2c379 # Parent 356f08325072dfd7de35f664a937e2f5aa8cd0fe [notification] we should use unsafe_execute here diff -r 356f08325072 -r eef17cfcfa9c 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]