예제 #1
0
 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
예제 #2
0
파일: machine.py 프로젝트: joelsefus/paella
 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
예제 #3
0
 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
예제 #4
0
 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
예제 #5
0
파일: machine.py 프로젝트: joelsefus/paella
 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
예제 #6
0
파일: machine.py 프로젝트: joelsefus/paella
 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