cubicweb/sobjects/notification.py
changeset 12843 000cd62eda32
parent 12567 26744ad37953
equal deleted inserted replaced
12842:e150ed316dfc 12843:000cd62eda32
   119             with Connection(self._cw.repo, user) as cnx:
   119             with Connection(self._cw.repo, user) as cnx:
   120                 self._cw = cnx
   120                 self._cw = cnx
   121                 try:
   121                 try:
   122                     # since the same view (eg self) may be called multiple time and we
   122                     # since the same view (eg self) may be called multiple time and we
   123                     # need a fresh stream at each iteration, reset it explicitly
   123                     # need a fresh stream at each iteration, reset it explicitly
   124                     self.w = None
   124                     self._w = None
   125                     try:
   125                     try:
   126                         # XXX forcing the row & col here may make the content and
   126                         # XXX forcing the row & col here may make the content and
   127                         #     subject inconsistent because subject will depend on
   127                         #     subject inconsistent because subject will depend on
   128                         #     self.cw_row & self.cw_col if they are set.
   128                         #     self.cw_row & self.cw_col if they are set.
   129                         content = self.render(row=0, col=0, **kwargs)
   129                         content = self.render(row=0, col=0, **kwargs)