Example #1
0
 def get_comments(entity):
     return comment_service.get_all_comments_by_ancestor(
         entity.key,
         sort=[-Comment.created],
         filter=[
             ndb.OR(ndb.AND(Comment.spam, Comment.approved),
                    Comment.approved)
         ])
Example #2
0
	def get_comments(entity):
		return comment_service.get_all_comments_by_ancestor(entity.key, sort=[-Comment.created],
		                                                    filter=[ndb.OR(ndb.AND(Comment.spam, Comment.approved),
		                                                                   Comment.approved)])
Example #3
0
	def get_comments(entity):
		return comment_service.get_all_comments_by_ancestor(entity.key, sort=[-Comment.created], filters=[Comment.approved is True])
Example #4
0
 def get_comments(entity):
     return comment_service.get_all_comments_by_ancestor(
         entity.key,
         sort=[-Comment.created],
         filters=[Comment.approved is True])