示例#1
0
 def put(self, entity, follower_id):
     """Updates a following relationship."""
     try:
         post_data = json.loads(request.data)
     except json.JSONDecodeError as e:
         raise APIBadRequest(str(e))
     follower = follow.update_follower(entity, follower_id, post_data)
     return jsonify(follower.to_json())
示例#2
0
文件: entity.py 项目: pytent/pytentd
 def put(self, entity, follower_id):
     """Updates a following relationship."""
     try:
         post_data = json.loads(request.data)
     except json.JSONDecodeError as e:
         raise APIBadRequest(str(e))
     follower = follow.update_follower(entity, follower_id, post_data)
     return jsonify(follower.to_json())
示例#3
0
 def put(self, follower_id):
     """Updates a following relationship."""
     return jsonify(follow.update_follower(
         g.entity, follower_id, request.json))
示例#4
0
 def put(self, follower_id):
     """Updates a following relationship."""
     return jsonify(
         follow.update_follower(g.entity, follower_id, request.json))