web/request.py
changeset 9561 3bdf85279c67
parent 9549 a1f94c2d2a39
child 9568 e8b9a3d23ad9
--- a/web/request.py	Tue Feb 18 13:54:08 2014 +0100
+++ b/web/request.py	Thu Oct 31 16:12:37 2013 +0100
@@ -318,6 +318,7 @@
 
     def set_message(self, msg):
         assert isinstance(msg, unicode)
+        self.reset_message()
         self._msg = msg
 
     def set_message_id(self, msgid):
@@ -348,6 +349,7 @@
         if hasattr(self, '_msg'):
             del self._msg
         if hasattr(self, '_msgid'):
+            self.session.data.pop(self._msgid, u'')
             del self._msgid
 
     def update_search_state(self):