def new_table_from_GenericTable(self, table, renderer=_NULLRenderer, **kwargs):
        tbl = self.add_table(**kwargs)
        NM = self.get_nodemaker()
        cycler = itertools.cycle(["row1", "row2"]) # For alternating row styles.
        # headings
        if table.headings:
            tbl.new_headings(*table.headings)
        if table.title:
            tbl.caption(table.title)
        for table_row in table:
            row = tbl.new_row()
            setattr(row, "class_", cycler.next())
            for cell in table_row:
                col = row.add_column()
                col.append(check_object(renderer(NM, cell)))
        return tbl
Add a pretty printer for a type specified by the module and name of a type
dataset/ETHPy150Open kdart/pycopia/WWW/pycopia/WWW/XHTML.py/ContainerMixin.new_table_from_GenericTable--crossover with--dataset/ETHPy150Open ipython/ipython-py3k/IPython/lib/pretty.py/for_type_by_name