def _make_table(self, context, fields, rows, **atts): table = Table(bgcolor=self._bgcolor_table, **atts) table.context = context self._add_table_header(table, fields + ['command']) for row in rows: self._add_table_row(table, fields, row) return table
def _make_variables_table(self, rows, **atts): table = Table(bgcolor=self._bgcolor_table, **atts) table.context = 'Variables' fields = ['trait', 'name', 'value'] self._add_table_header(table, fields + ['command']) for row in rows: self._add_variables_table_row(table, fields, row) return table
def _make_script_table(self, scripts, **atts): table = Table(bgcolor=self._bgcolor_table, **atts) table.context = 'Scripts' fields = ['script', 'inherited', 'command'] self._add_table_header(table, fields) for scriptname, parent in scripts: self._add_script_table_row(table, scriptname, parent) return table
def _make_script_table(self, scripts, **atts): table = Table(bgcolor=self._bgcolor_table, **atts) table.context = 'Scripts' fields= ['script', 'inherited', 'command'] self._add_table_header(table, fields) for scriptname, parent in scripts: self._add_script_table_row(table, scriptname, parent) return table