view.py
changeset 6563 33343d6eae0a
parent 6458 e4eb95d86172
child 6761 84b67ae41a0d
equal deleted inserted replaced
6561:2b1679aa5cc1 6563:33343d6eae0a
   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):