def comment_reply_delete(self, request): user = endpoints.get_current_user() reply = CommentReply.get_CommentReply(request.value) if not (reply and user and reply.author_email == user.email()): return API.BooleanMessage(value=False) reply.delete() return API.BooleanMessage(value=True)
def comment_reply_get(self, request): reply = CommentReply.get_CommentReply(request.value) if not reply: return CommentReplyResponse(comment_reply=None) return CommentReplyResponse(comment_reply=createCommentReplyMessage(reply))