hooks/email.py
changeset 9614 e5ba755d8ca7
parent 8544 3d049071957e
child 9892 928732ec00dd
child 9984 793377697c81
--- 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})