Esempio n. 1
0
    def GET(self, _id):
        if len(_id) != 24:
            raise web.notfound()

        from brave.notes.core.session import session
        note = Category.objects.GetNote(_id, session.user)

        if note == None:
            raise web.notfound()

        return render.notes(Category.objects.GetCategories(session.user), note)
Esempio n. 2
0
 def GET(self):
     from brave.notes.core.session import session
     return render.notes(Category.objects.GetCategories(session.user), None)