# HG changeset patch # User Julien Cristau # Date 1396362769 -7200 # Node ID 1cbdd0b25805fec35ba937948a5fea75af5fab47 # Parent 6ba726dbf4fda09f2f03fe43dede739149f7cc58 [hooks/bookmark] use a cnx not a session diff -r 6ba726dbf4fd -r 1cbdd0b25805 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()