def post(self): key=self.request.get('topkey') entry=Entry.get(key) util.saveEntry(self) template_values = { 'up':up(entry), 'comments':commentsHtml(top=entry,entry=entry), 'entryform':EntryForm(), 'topkey':key } template_values.update(util.loadstd(self)) path = os.path.join(os.path.dirname(__file__), '../html/comments.html') self.response.out.write(template.render(path, template_values))
def post(self): # save post util.saveEntry(self) dopostit(self)
def post(self): util.saveEntry(self) # finish up index.doindex(self)