sobjects/notification.py
branchstable
changeset 9699 990676d3f39f
parent 9387 f31f0c8bda4f
child 9770 112c884b2d8d
equal deleted inserted replaced
9698:737983d87497 9699:990676d3f39f
   127                 self._cw.set_language(lang)
   127                 self._cw.set_language(lang)
   128             # since the same view (eg self) may be called multiple time and we
   128             # since the same view (eg self) may be called multiple time and we
   129             # need a fresh stream at each iteration, reset it explicitly
   129             # need a fresh stream at each iteration, reset it explicitly
   130             self.w = None
   130             self.w = None
   131             try:
   131             try:
   132                 # XXX call render before subject to set .row/.col attributes on the
       
   133                 #     view
       
   134                 try:
   132                 try:
       
   133                     # XXX forcing the row & col here may make the content and
       
   134                     #     subject inconsistent because subject will depend on
       
   135                     #     self.cw_row & self.cw_col if they are set.
   135                     content = self.render(row=0, col=0, **kwargs)
   136                     content = self.render(row=0, col=0, **kwargs)
   136                     subject = self.subject()
   137                     subject = self.subject()
   137                 except SkipEmail:
   138                 except SkipEmail:
   138                     continue
   139                     continue
   139                 except Exception as ex:
   140                 except Exception as ex: