コード例 #1
0
ファイル: blitem.py プロジェクト: ipedrazas/blibb-api
 def get_comments(self, obj_id):
     return Comment.get_comments_by_id(obj_id)
コード例 #2
0
ファイル: webuser.py プロジェクト: ipedrazas/blibb-api
def getComments(username=None, slug=None, item_id=None):
    if is_valid_id(item_id):
        cs = Comment.get_comments_by_id(item_id)
        return jsonify({'comments': cs})
    abort(404)
コード例 #3
0
ファイル: webcomment.py プロジェクト: ipedrazas/blibb-api
def getComments(parent_id=None):
    if is_valid_id(parent_id):
        cs = Comment.get_comments_by_id(parent_id)
        return jsonify({'comments': cs})
    abort(404)