def post(self): self.response.headers['Content-Type'] = 'text/html' content = self.request.POST.get('content', '') lang = self.request.POST.get('type', 'None') paste = Paste(content=content, type=lang) paste.put() self.redirect('/' + b64.num_encode(paste.key().id()))