def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def add_item(self, item):
    self._vbox_items.pack_start(item.widget, expand=False, fill=False)