From c8c9cd4a5be6d123d5fedd803a19a19d9458a6ea Mon Sep 17 00:00:00 2001 From: Romain Beuque Date: Sat, 20 Sep 2014 13:11:08 +0200 Subject: [PATCH] correction erreur redirect after deleteMachine --- Brie/brie/controllers/edit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Brie/brie/controllers/edit.py b/Brie/brie/controllers/edit.py index f2dd0b4..806a89c 100644 --- a/Brie/brie/controllers/edit.py +++ b/Brie/brie/controllers/edit.py @@ -781,7 +781,7 @@ class MachineDeleteController(AuthenticatedRestController): """ Gestion des requêtes post sur ce controller """ @expose() - def post(self, residence, member_uid, machine_id, redirect = True): + def post(self, residence, member_uid, machine_id, go_redirect = True): residence_dn = Residences.get_dn_by_name(self.user, residence) # Récupération du membre et de la machine @@ -806,7 +806,7 @@ class MachineDeleteController(AuthenticatedRestController): #end if # On redirige sur la page d'édition du membre - if redirect: + if go_redirect: redirect("/edit/member/" + residence + "/" + member_uid) #end if #end def