[deprecation] __message hidden generate deprecation warning stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 02 Aug 2011 17:31:04 +0200
branchstable
changeset 7728 0fa5ba0229cd
parent 7727 70ea754d3e04
child 7729 5f89f11143bc
[deprecation] __message hidden generate deprecation warning
web/views/forms.py
--- a/web/views/forms.py	Tue Aug 02 10:39:10 2011 +0200
+++ b/web/views/forms.py	Tue Aug 02 17:31:04 2011 +0200
@@ -384,7 +384,8 @@
                 else:
                     msg = self._cw._('entity linked')
         if msg:
-            self.add_hidden('__message', msg)
+            msgid = self._cw.set_redirect_message(msg)
+            self.add_hidden('_cwmsgid', msgid)
 
     def session_key(self):
         """return the key that may be used to store / retreive data about a