def delete(self, commit=True): """Remove the record from the database.""" DB.delete(self) return commit and DB.commit()
def save(self, commit=True): """Save the record.""" DB.add(self) if commit: DB.commit() return self