Commit dca58dc1 authored by Philippe Pepiot's avatar Philippe Pepiot
Browse files

[sobjects/notification] fix broken email notifications

In EntityView.w become a method using EntityView._w
In notifications we reset "self.w" for every notifications since we handle multiple streams.

We should set "self._w" to None instead, otherwise subsequent calls to "self.w()" will fail with TypeError: 'NoneType' object is not callable.
parent e150ed316dfc
......@@ -121,7 +121,7 @@ class NotificationView(EntityView):
# since the same view (eg self) may be called multiple time and we
# need a fresh stream at each iteration, reset it explicitly
self.w = None
self._w = None
# XXX forcing the row & col here may make the content and
# subject inconsistent because subject will depend on
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment