# HG changeset patch # User cavaliet # Date 1406113139 -7200 # Node ID 91245f09c7a7c512aeced799575ff381420c8266 # Parent 815589aed866cc53e8b835676d897d6ebcf56d16 little correction diff -r 815589aed866 -r 91245f09c7a7 .settings/org.eclipse.core.resources.prefs --- a/.settings/org.eclipse.core.resources.prefs Tue Jul 22 18:01:03 2014 +0200 +++ b/.settings/org.eclipse.core.resources.prefs Wed Jul 23 12:58:59 2014 +0200 @@ -1,3 +1,5 @@ eclipse.preferences.version=1 encoding//server/java/renkan-web/src/main/webapp/WEB-INF/i18n/messages_en.properties=UTF-8 encoding//server/java/renkan-web/src/main/webapp/WEB-INF/i18n/messages_fr.properties=UTF-8 +encoding//server/python/django/renkanmanager/utils.py=utf-8 +encoding//server/python/django/renkanmanager/views.py=utf-8 diff -r 815589aed866 -r 91245f09c7a7 server/python/django/renkanmanager/views.py --- a/server/python/django/renkanmanager/views.py Tue Jul 22 18:01:03 2014 +0200 +++ b/server/python/django/renkanmanager/views.py Wed Jul 23 12:58:59 2014 +0200 @@ -43,6 +43,8 @@ #data = json.loads(request.body) #logger.debug(data["edges"]) #logger.debug(data["nodes"]) + #logger.debug(request.user.is_authenticated()) + #logger.debug(request.user.is_anonymous()) if rk_id!="": rk = get_object_or_404(Renkan, rk_id=rk_id) if rk.owner!=request.user: @@ -52,8 +54,9 @@ if "title" in data: rk.title = data["title"] rk.save() + return HttpResponse("SAVED") - return HttpResponse("OK") + return HttpResponse("NOT SAVED")