Beispiel #1
0
    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))
Beispiel #2
0
 def post(self):
     # save post
     util.saveEntry(self)
     
     dopostit(self)        
Beispiel #3
0
 def post(self):
     
     util.saveEntry(self)
     
     # finish up
     index.doindex(self)