예제 #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
파일: followers.py 프로젝트: rlanger/Rondo
 def put(self, follower_id):
     """Updates a following relationship."""
     return jsonify(follow.update_follower(
         g.entity, follower_id, request.json))
예제 #4
0
파일: followers.py 프로젝트: rlanger/Rondo
 def put(self, follower_id):
     """Updates a following relationship."""
     return jsonify(
         follow.update_follower(g.entity, follower_id, request.json))