def viewCommentManager(self, ident): ns = { 'ident': ident, 'template': self.template, 'comments': BlogCommentModel.getAllByIdent(ident) } return render("site_plugins/blog/view/comment_manager.tmpl", ns)
def fetchMore(self, last_id, ident=''): last_id = long(last_id) list = BlogCommentModel.getAllByIdent(ident, after_id=last_id) jsons = [ i.toJSON() for i in list ] return '[%s]' % (','.join(jsons))