Example #1
0
    def post(self):
        clip = Clipboard()

        clip.UID = self.request.get("ID")
        clip.PlainContent = db.Text(urllib.unquote(self.request.get("TextContent"))).replace("+", " ")
        clip.Type = int(self.request.get("Type"))
        clip.IsGAESync = bool(self.request.get("IsGAESync"))
        clip.Subject = urllib.unquote(self.request.get("Subject"))
        clip.CreateDateTime = datetime.datetime.strptime(self.request.get("CreateDateTime"), "%Y-%m-%d %H:%M:%S")
        clip.CreateBy = self.request.get("CreateBy")

        clip.put()

        return self.response.out.write("Clip has been put in correct.")