jo5ef/notebook — Issue #1: The only missing feature
Author: stto3703
Created: 2011-12-23 21:18:51+00:00
State: open

user = authenticate(self)
if not user: return

note = Note.get_by_id(int(noteId)) if noteId else Note(user=user)

if not note:
self.error(404)
return

if note.user and note.user != user:
self.error(403)
return

note.delete()
self.redirect('/')

:)