[hooks/email] use a cnx not a session
authorJulien Cristau <julien.cristau@logilab.fr>
Tue, 01 Apr 2014 16:30:35 +0200
changeset 9614 e5ba755d8ca7
parent 9613 45370ea9f495
child 9615 6ba726dbf4fd
[hooks/email] use a cnx not a session
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})