equal
deleted
inserted
replaced
128 self._cw = cnx |
128 self._cw = cnx |
129 try: |
129 try: |
130 # since the same view (eg self) may be called multiple time and we |
130 # since the same view (eg self) may be called multiple time and we |
131 # need a fresh stream at each iteration, reset it explicitly |
131 # need a fresh stream at each iteration, reset it explicitly |
132 self.w = None |
132 self.w = None |
133 # XXX call render before subject to set .row/.col attributes on the |
|
134 # view |
|
135 try: |
133 try: |
|
134 # XXX forcing the row & col here may make the content and |
|
135 # subject inconsistent because subject will depend on |
|
136 # self.cw_row & self.cw_col if they are set. |
136 content = self.render(row=0, col=0, **kwargs) |
137 content = self.render(row=0, col=0, **kwargs) |
137 subject = self.subject() |
138 subject = self.subject() |
138 except SkipEmail: |
139 except SkipEmail: |
139 continue |
140 continue |
140 except Exception as ex: |
141 except Exception as ex: |