add_table warns even if table.columns is set.
How are write-only users supposed to avoid the warning ?
Manually call _duplicate_name() and _tables.add() ?
Subclass WriteOnlyWorksheet() and add _get_cell=False ?
def add_table(self, table):
"""
Check for duplicate name in definedNames and other worksheet tables
before adding table.
"""
if self.parent._duplicate_name(
table.name):
raise ValueError("Table with name {0} already exists".format(
table.name))
if not hasattr(self, "_get_cell"):
warn("In write-only mode you must add table columns manually")
self._tables.add(table)
Justin