X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Freputationview.py;h=a08ad4630ccce51c87af9f5914e95449a8155b20;hb=3627ebeae68471c98c796277794e5b4ebed8a0b0;hp=fcc5ff06e626a34b9c229852de401c777c5e2aba;hpb=9edf14961bca561ecbd280baa8fc2dcdfbbfd638;p=myslice.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 +