[hooks/bookmark] use a cnx not a session
authorJulien Cristau <julien.cristau@logilab.fr>
Tue, 01 Apr 2014 16:32:49 +0200
changeset 9616 1cbdd0b25805
parent 9615 6ba726dbf4fd
child 9617 498ee8ef79e1
[hooks/bookmark] use a cnx not a session
hooks/bookmark.py
--- a/hooks/bookmark.py	Tue Apr 01 16:32:28 2014 +0200
+++ b/hooks/bookmark.py	Tue Apr 01 16:32:49 2014 +0200
@@ -25,7 +25,7 @@
 class AutoDeleteBookmarkOp(hook.Operation):
     bookmark = None # make pylint happy
     def precommit_event(self):
-        if not self.session.deleted_in_transaction(self.bookmark.eid):
+        if not self.cnx.deleted_in_transaction(self.bookmark.eid):
             if not self.bookmark.bookmarked_by:
                 self.bookmark.cw_delete()