Beispiel #1
0
    def render_text(self, outfd, data):
        output = self.unified_output(data)

        if isinstance(output, renderers.TreeGrid):
            tr = TextRenderer(self.text_cell_renderers, sort_column=self.text_sort_column)
            tr.render(outfd, output)
        else:
            raise TypeError("Unified Output must return a TreeGrid object")
Beispiel #2
0
    def render_text(self, outfd, data):
        output = self.unified_output(data)

        if isinstance(output, renderers.TreeGrid):
            tr = TextRenderer(self.text_cell_renderers,
                              sort_column=self.text_sort_column)
            tr.render(outfd, output)
        else:
            raise TypeError("Unified Output must return a TreeGrid object")
Beispiel #3
0
 def render_text(self, outfd, data):
     # Overriding this function is a hack to override the default max_width.
     self._render(
         outfd,
         TextRenderer(self.text_cell_renderers,
                      max_width=sys.maxint,
                      sort_column=self.text_sort_column,
                      config=self._config), data)
Beispiel #4
0
 def render_text(self, outfd, data):
     self._render(
         outfd,
         TextRenderer(
             self.text_cell_renderers,
             sort_column=self.text_sort_column,
             config=self._config,
         ),
         data,
     )