self.primary_key = [] for col in self.table.get_children(): if col.primary_key: self.primary_key.append(col) if history: self.history = History(self.table.metadata, self) else: self.history = None def update(self, where, what, old_data_version=None, changed_by=None): # Because we're a base for History tables as well as normal tables # these must be optional parameters, but enforced when the features # are enabled.