def personal_collection_delete(*, id): message = yield from Message.find(id) yield from message.remove() return dict(id=id)
def personal_message_view(*, id): message = yield from Message.find(id) return {'__template__': 'personal_message_view.html', 'message': message}