def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def select_all(self, event=None):
        self.selection_range(0, END)
        return "break"