git://git.onelab.eu
/
unfold.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
HttpResponse expects content_type, mimetype was an old thing and was removed in 1.7
[unfold.git]
/
portal
/
reputationview.py
diff --git
a/portal/reputationview.py
b/portal/reputationview.py
index
fcc5ff0
..
a08ad46
100644
(file)
--- a/
portal/reputationview.py
+++ b/
portal/reputationview.py
@@
-22,7
+22,7
@@
from django.views.decorators.csrf import csrf_exempt
from django.http import *
from django.http import *
-def response_
mime
type(request):
+def response_
content_
type(request):
if "application/json" in request.META['HTTP_ACCEPT']:
return "application/json"
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 )
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_
mime
type(self.request))
+ return HttpResponse(json.dumps(slicedata_received), content_type = response_
content_
type(self.request))
slices_users = []
slices_users = []
@@
-376,4
+376,4
@@
class ReputationView (LoginRequiredAutoLogoutView, ThemeView):
-
\ No newline at end of file
+