Esempio n. 1
0
 def start_table(self, header):
     self._current_populator.populate()
     table = self._datafile.start_table(DataRow(header).all)
     self._current_populator = self._populators[table.type](table) \
                                 if table is not None else NullPopulator()
     return bool(self._current_populator)
Esempio n. 2
0
 def __init__(self, datafile):
     self._datafile = datafile
     self._current_populator = NullPopulator()
     self._curdir = self._get_curdir(datafile.directory)