Esempio n. 1
0
def add_entry(title, text):
    new_entry = Entry(title, text)
    if new_entry.validate():
        return EntryRepo.save(new_entry)
    else:
        return False
Esempio n. 2
0
def show_entries():
    return EntryRepo.all()