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

[sobjects/notification] fix broken email notifications

In https://hg.logilab.org/review/cubicweb/rev/8caa109dfe945592a34904bb56971cc57d1c6084 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): ...@@ -121,7 +121,7 @@ class NotificationView(EntityView):
try: try:
# since the same view (eg self) may be called multiple time and we # since the same view (eg self) may be called multiple time and we
# need a fresh stream at each iteration, reset it explicitly # need a fresh stream at each iteration, reset it explicitly
self.w = None self._w = None
try: try:
# XXX forcing the row & col here may make the content and # XXX forcing the row & col here may make the content and
# subject inconsistent because subject will depend on # 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