def notes_command(): """ Lists all notes. """ notes = Note.all(conn()) for note in notes: print note.display_line() if len(notes) == 0: print "No notes found."