added note about interesting page about SQL implementation differences
"""bookmark related hooks:organization: Logilab:copyright: 2001-2010 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2.:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr:license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses"""__docformat__="restructuredtext en"fromcubicweb.serverimporthookclassAutoDeleteBookmarkOp(hook.Operation):bookmark=None# make pylint happydefprecommit_event(self):ifnotself.session.deleted_in_transaction(self.bookmark.eid):ifnotself.bookmark.bookmarked_by:self.bookmark.delete()classDelBookmarkedByHook(hook.Hook):"""ensure user logins are stripped"""__regid__='autodelbookmark'__select__=hook.Hook.__select__&hook.match_rtype('bookmarked_by',)category='bookmark'events=('after_delete_relation',)def__call__(self):AutoDeleteBookmarkOp(self._cw,bookmark=self._cw.entity_from_eid(self.eidfrom))