示例#1
0
 def viewCommentManager(self, ident):
     ns = {
       'ident': ident,
       'template': self.template,
       'comments': BlogCommentModel.getAllByIdent(ident)
     }
     return render("site_plugins/blog/view/comment_manager.tmpl", ns)
示例#2
0
 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))