# HG changeset patch # User Julien Cristau # Date 1396362635 -7200 # Node ID e5ba755d8ca7cd556c1b855150fca54e2e0dc4c1 # Parent 45370ea9f49523aeebad7fa3241a0259e9730459 [hooks/email] use a cnx not a session diff -r 45370ea9f495 -r e5ba755d8ca7 hooks/email.py --- a/hooks/email.py Tue Apr 01 16:29:54 2014 +0200 +++ b/hooks/email.py Tue Apr 01 16:30:35 2014 +0200 @@ -38,7 +38,7 @@ def precommit_event(self): if self.condition(): - self.session.execute( + self.cnx.execute( 'SET X %s Y WHERE X eid %%(x)s, Y eid %%(y)s' % self.rtype, {'x': self.entity.eid, 'y': self.email.eid})