[form controller] clear caches in case some attribute participating to the rest path has been modified, avoid redirection to a no more existant page (fix #753567) stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 26 Mar 2010 13:45:21 +0100
branchstable
changeset 5040 00782905b720
parent 5039 c28db242721d
child 5041 ebdab53b0c45
[form controller] clear caches in case some attribute participating to the rest path has been modified, avoid redirection to a no more existant page (fix #753567)
web/controller.py
--- a/web/controller.py	Fri Mar 26 13:33:47 2010 +0100
+++ b/web/controller.py	Fri Mar 26 13:45:21 2010 +0100
@@ -136,6 +136,9 @@
             params.update(newparams)
             newparams = params
         elif self._edited_entity:
+            # clear caches in case some attribute participating to the rest path
+            # has been modified
+            self._edited_entity.clear_all_caches()
             path = self._edited_entity.rest_path()
         else:
             path = 'view'