Commit 69b2f4d2 authored by Vincent Le gallic's avatar Vincent Le gallic

s/'/"/ cohérence

parent b4a565a6
......@@ -112,14 +112,14 @@ def login_page(request):
form = forms.LoginForm(label_suffix=" :")
variables = basic._fundamental_variables()
variables["form"] = form
return render_to_response('note/login.html', variables, context_instance=RequestContext(request))
return render_to_response("note/login.html", variables, context_instance=RequestContext(request))
def index(request):
"""La page qui ne sert à rien"""
# On appelle la fonction standard
success, sock_ou_response, variables = utilities.standard_page(request)
if success:
return render_to_response('note/index.html', variables, context_instance=RequestContext(request))
return render_to_response("note/index.html", variables, context_instance=RequestContext(request))
else:
# Une erreur a eu lieu
response = sock_ou_response
......@@ -201,7 +201,7 @@ def activites(request, admin=None):
"hasadmin": hasadmin,
"isadmin": isadmin}
variables.update(variables_standard)
return render_to_response('note/activites.html', variables, context_instance=RequestContext(request))
return render_to_response("note/activites.html", variables, context_instance=RequestContext(request))
else:
# Une erreur a eu lieu
response = sock_ou_response
......@@ -266,7 +266,7 @@ def activite(request, idact=None, admin=None):
"hasadmin": hasadmin,
"isadmin": isadmin}
variables.update(variables_standard)
return render_to_response('note/invitation.html', variables, context_instance=RequestContext(request))
return render_to_response("note/invitation.html", variables, context_instance=RequestContext(request))
else:
# Une erreur a eu lieu
response = sock_ou_response
......@@ -308,7 +308,7 @@ def activite_gestion(request, idact=None, validation=None):
messages.add_error(request, out["errmsg"])
return HttpResponseRedirect('%sactivites/%s/gestion/' % (settings.NOTE_ROOT_URL, idact))
variables.update(variables_standard)
return render_to_response('note/activite_gestion.html', variables, context_instance=RequestContext(request))
return render_to_response("note/activite_gestion.html", variables, context_instance=RequestContext(request))
else:
# gotit est en fait un MyHttpResponseRedirect de fallback
return gotit
......@@ -336,7 +336,7 @@ def activite_gestion_modifier(request, idact=None):
form = forms.ActiviteForm(label_suffix=" :", initial=activite)
variables["form"] = form
variables.update(variables_standard)
return render_to_response('note/activite_modifier.html', variables, context_instance=RequestContext(request))
return render_to_response("note/activite_modifier.html", variables, context_instance=RequestContext(request))
else:
form = forms.ActiviteForm(request.POST, label_suffix=" :")
variables["form"] = form
......@@ -356,12 +356,12 @@ def activite_gestion_modifier(request, idact=None):
messages.add_success(request, settings.SUCCMSG_CHGACT)
else:
messages.add_error(request, out["errmsg"])
return render_to_response('note/activite_modifier.html', variables, context_instance=RequestContext(request))
return render_to_response("note/activite_modifier.html", variables, context_instance=RequestContext(request))
# on renvoie sur la page de visualisation de l'activité modifiée
return HttpResponseRedirect("%sactivites/%s/gestion/" % (settings.NOTE_ROOT_URL, idact))
else:
variables.update(variables_standard)
return render_to_response('note/activite_modifier.html', variables, context_instance=RequestContext(request))
return render_to_response("note/activite_modifier.html", variables, context_instance=RequestContext(request))
else:
# Une erreur a eu lieu
response = sock_ou_response
......@@ -396,7 +396,7 @@ def mes_activites(request, idact=None, delete=None):
form = forms.ActiviteForm(label_suffix=" :", listeimprimee=False)
variables["form"] = form
variables.update(variables_standard)
return render_to_response('note/mes_activites.html', variables, context_instance=RequestContext(request))
return render_to_response("note/mes_activites.html", variables, context_instance=RequestContext(request))
else:
idact, fallback_redirect = _cast_as("idact", idact, request, fallback='%smes_activites/' % (settings.NOTE_ROOT_URL,))
if fallback_redirect != None:
......@@ -423,7 +423,7 @@ def mes_activites(request, idact=None, delete=None):
messages.add_error(request, out["errmsg"])
variables["form"] = form
variables.update(variables_standard)
return render_to_response('note/activite_modifier.html', variables, context_instance=RequestContext(request))
return render_to_response("note/activite_modifier.html", variables, context_instance=RequestContext(request))
else:
response = sock_ou_response
return response
......@@ -1227,4 +1227,4 @@ def page_not_found(request):
"""Page 404 customisée pour y ajouter des variables."""
variables = {"report_bugs_to" : settings.REPORT_BUGS_EMAIL,
"NOTE_ROOT_URL" : settings.NOTE_ROOT_URL}
return render_to_response('404.html', variables, context_instance=RequestContext(request))
return render_to_response("404.html", variables, context_instance=RequestContext(request))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment