Ejemplo n.º 1
0
    def get(self):
        '''
        Returns all notes ordered by title at JSON format.
        '''

        notes = NoteManager.get_all()
        self.return_documents(notes)
Ejemplo n.º 2
0
    def get(self):
        '''
        * GET: Return the HTML representation of all notes.
        '''

        notes = NoteManager.get_all()
        self.render("templates/note_rows.html", notes=notes)
Ejemplo n.º 3
0
def retrieve_all_notes(step):
    world.test_notes = NoteManager.get_all().all()
Ejemplo n.º 4
0
def delete_all_notes(scenario):
    notes = NoteManager.get_all()
    for note in notes:
        note.delete()