Ejemplo n.º 1
0
 def tables(self):
     if len(self.columns):
         schema = dict(sheet=0, sheet_name=self.title, columns=[])
         for column in self.columns:
             schema['columns'].append({'name': column, 'label': column})
         return [Tabular(schema)]
     return [Tabular(s) for s in self.meta.get('tables', [])]
Ejemplo n.º 2
0
 def create_tabular(self, sheet, sheet_name=None):
     return Tabular({'sheet_name': sheet_name, 'sheet': sheet})
Ejemplo n.º 3
0
 def tables(self):
     return [Tabular(s) for s in self.data.get('tables', [])]