[web/request] Restore attribute setting for search_state
authorDenis Laxalde <denis.laxalde@logilab.fr>
Wed, 25 Mar 2015 10:10:24 +0100
changeset 10276 ffb269e60348
parent 10275 d6131c5045be
child 10301 729f36a1bcfa
[web/request] Restore attribute setting for search_state This was dropped in 1f84295bfe95 when `search_state` attribute was turned into a property, but without a setter. So adding a setter here restoring previous behaviour, as some tests and cubes use it. Related to #4875761.
web/request.py
--- a/web/request.py	Mon Feb 09 12:52:15 2015 +0100
+++ b/web/request.py	Wed Mar 25 10:10:24 2015 +0100
@@ -368,6 +368,10 @@
             self._load_search_state(searchstate)
         return self._search_state
 
+    @search_state.setter
+    def search_state(self, searchstate):
+        self._search_state = searchstate
+
     def update_search_state(self):
         """update the current search state if needed"""
         searchstate = self.form.get('__mode')