Beispiel #1
0
    def get(self):
        '''
        * GET: Return the HTML representation of all notes.
        '''

        notes = NoteManager.get_all()
        self.render("templates/note_rows.html", notes=notes)
Beispiel #2
0
def retrieve_all_notes(step):
    world.test_notes = NoteManager.get_all().all()
Beispiel #3
0
def delete_all_notes(scenario):
    notes = NoteManager.get_all()
    for note in notes:
        note.delete()
Beispiel #4
0
 def get(self):
     '''
     Returns all notes ordered by title at JSON format.
     '''
     notes = NoteManager.get_all()
     self.return_documents(notes)
Beispiel #5
0
def retrieve_all_notes(step):
    world.test_notes = NoteManager.get_all().all()
Beispiel #6
0
def delete_all_notes(scenario):
    notes = NoteManager.get_all()
    for note in notes:
        note.delete()
Beispiel #7
0
 def get(self):
     '''
     Returns all notes ordered by title at JSON format.
     '''
     notes = NoteManager.get_all()
     self.return_documents(notes)