def post(self): message = Message() user = users.get_current_user() if user: message.author = user #Added the content to the message: message.content = cgi.escape(self.request.get('content')) #Assigned the id to the message: message.postID = Message.max_id() + 1 message.put()