class documentation

class TableParser: (source)

View In Hierarchy

Common functions for converting a table from its' xml structure to another format
Static Method alignrow No summary
Static Method convert_to_multiline_cells No summary
Static Method get_options Lists the attributes as tuple :param attrib: :return: tuple of attributes
Static Method headline No summary
Static Method headsep No summary
Static Method rowline No summary
Static Method rowsep No summary
Static Method width2dim Calculates the characters on each column and return list of widths :param lines: 2-dim multiline rows :return: the number of characters of the longest cell-value by column
Static Method width3dim Calculates the characters on each column and return list of widths :param lines: 3-dim multiline rows :return: the number of characters of the longest cell-value by column
@staticmethod
def alignrow(row, maxwidths, aligns, y=' '): (source)
Formats a row with the right alignments :param row: tuple of cells :param maxwidths: list of column length :param aligns: list of alignments :param y: space-separator :return: a textline
@staticmethod
def convert_to_multiline_cells(rows): (source)
@staticmethod
def get_options(attrib): (source)
Lists the attributes as tuple :param attrib: :return: tuple of attributes
@staticmethod
def headline(row, maxwidths, aligns, wraps, x='|', y=' '): (source)
Displays a headerline line in text format :param row: tuple of cells :param maxwidths: list of column length :param aligns: list of alignments :param x: point-separator :param y: space-separator :return: a textline
@staticmethod
def headsep(maxwidths, aligns, x='|', y='-'): (source)
Displays a header separation with alignment infos example: rowsep((3,0), '-', '+') -> +-----+--+ :param maxwidths: list of column lengths :param aligns: list of alignments :param x: point-separator :param y: line-separator :return: a text line
@staticmethod
def rowline(row, maxwidths, aligns, x='|', y=' '): (source)
Displays a normal column line in text format example: rowline((3,0), (left, left), '+','-') -> +-aa--+--+ :param row: tuple of cells :param maxwidths: list of column length :param aligns: list of alignments :param x: point-separator :param y: space-separator :return: a textline
@staticmethod
def rowsep(maxwidths, x='+', y='-'): (source)
Displays a row separator example: rowsep((3,0), '-', '+') -> +-----+--+ :param maxwidths: list of column lengths :param x: point-separator :param y: line-separator :return: a textline
@staticmethod
def width2dim(lines): (source)
Calculates the characters on each column and return list of widths :param lines: 2-dim multiline rows :return: the number of characters of the longest cell-value by column
@staticmethod
def width3dim(lines): (source)
Calculates the characters on each column and return list of widths :param lines: 3-dim multiline rows :return: the number of characters of the longest cell-value by column