示例#1
0
    def get(self):
        '''
        Returns all notes ordered by title at JSON format.
        '''

        notes = NoteManager.get_all()
        self.return_documents(notes)
示例#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)
示例#3
0
文件: steps.py 项目: rakoo/newebe
def retrieve_all_notes(step):
    world.test_notes = NoteManager.get_all().all()
示例#4
0
文件: steps.py 项目: rakoo/newebe
def delete_all_notes(scenario):
    notes = NoteManager.get_all()
    for note in notes:
        note.delete()