X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Freputationview.py;h=a08ad4630ccce51c87af9f5914e95449a8155b20;hb=c4824dd65364b1ba6c9d3f45a9b6298dfafad0bc;hp=fcc5ff06e626a34b9c229852de401c777c5e2aba;hpb=e31bfbaf756d956608f58e5d339022cc141406d5;p=unfold.git diff --git a/portal/reputationview.py b/portal/reputationview.py index fcc5ff06..a08ad463 100644 --- a/portal/reputationview.py +++ b/portal/reputationview.py @@ -22,7 +22,7 @@ from django.views.decorators.csrf import csrf_exempt from django.http import * -def response_mimetype(request): +def response_content_type(request): if "application/json" in request.META['HTTP_ACCEPT']: return "application/json" @@ -233,7 +233,7 @@ class ReputationView (LoginRequiredAutoLogoutView, ThemeView): slicedata_received = json_to_rest('http://survivor.lab.netmode.ntua.gr:4567/reputation/json', dict_to_send ) - return HttpResponse(json.dumps(slicedata_received), content_type = response_mimetype(self.request)) + return HttpResponse(json.dumps(slicedata_received), content_type = response_content_type(self.request)) slices_users = [] @@ -376,4 +376,4 @@ class ReputationView (LoginRequiredAutoLogoutView, ThemeView): - \ No newline at end of file +