def get(self): ''' Returns all notes ordered by title at JSON format. ''' notes = NoteManager.get_all() self.return_documents(notes)
def get(self): ''' * GET: Return the HTML representation of all notes. ''' notes = NoteManager.get_all() self.render("templates/note_rows.html", notes=notes)
def retrieve_all_notes(step): world.test_notes = NoteManager.get_all().all()
def delete_all_notes(scenario): notes = NoteManager.get_all() for note in notes: note.delete()