equal
deleted
inserted
replaced
168 context.setdefault('col', 0) |
168 context.setdefault('col', 0) |
169 view_func = self.cell_call |
169 view_func = self.cell_call |
170 else: |
170 else: |
171 view_func = self.call |
171 view_func = self.call |
172 stream = self.set_stream(w) |
172 stream = self.set_stream(w) |
173 view_func(**context) |
173 try: |
|
174 view_func(**context) |
|
175 except: |
|
176 self.debug('view call %s failed (context=%s)', view_func, context) |
|
177 raise |
174 # return stream content if we have created it |
178 # return stream content if we have created it |
175 if stream is not None: |
179 if stream is not None: |
176 return self._stream.getvalue() |
180 return self._stream.getvalue() |
177 |
181 |
178 def tal_render(self, template, variables): |
182 def tal_render(self, template, variables): |