cubicweb #2934523 broken notifications [validation pending]

2013-06-12 12:10:54 - (cubicweb.session) ERROR: Notification failed
Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/cubicweb/hooks/notification.py", line 72, in postcommit_event
view.render_and_send(**viewargs)
File "/usr/lib/python2.6/dist-packages/cubicweb/sobjects/notification.py", line 85, in render_and_send
for recipients, msg in self.render_emails(**kwargs):
File "/usr/lib/python2.6/dist-packages/cubicweb/sobjects/notification.py", line 122, in render_emails
self._cw = Session(self._cw.repo, something)
File "/usr/lib/python2.6/dist-packages/cubicweb/server/session.py", line 836, in __init__
super(Session, self).__init__(repo.vreg)
AttributeError: 'CWUser' object has no attribute 'vreg'

priorityimportant
typebug
done in3.17.2
load0.250
load left0.000
closed by#a3594bf2b6bf notification: fix session creation (closes #2934523)
patchnotification: properly handle cnx and lifetime of the hijacked session [applied][notification] fix session creation (closes #2934523) [applied]