def simpleCopy(self, include=None): """Return a simple copy of the PEAT table model, with only text and int fields and not using the OOBTree structure""" M=TableModel() fields = self.DB.getSimpleFields() if include!=None: fields.extend(include) for rec in self.reclist: data={} for f in fields: if self.data[rec].has_key(f): data[f] = self.data[rec][f] M.addRecord(rec,**data) return M