def AddCell(self, attributes=None, rowspan=1, colspan=1): tc = TableCell(attributes=attributes) tc.number = self.nextcell self.nextcell += colspan tc.setAttribute('numberrowsspanned', str(rowspan)) tc.setAttribute('numbercolumnsrepeated', str(colspan)) tc.setAttribute('numbercolumnsspanned', str(colspan)) self.row.addElement(tc) return tc