# HG changeset patch # User Sylvain Thénault # Date 1467828895 -7200 # Node ID 3432f0e2540d0ed540a33c42598587258ff7fdf7 # Parent aaa768e886ae958695ab773ac08a16923760d0c1 [session] Ensure access to rql varmaker always mark the session as dirty When one accesses the rql_varmaker, that's usually to use it. The pb was that when the varmaker was already in page's data (which is stored as session data), session storage such as redis won't see that the session data is dirty and has to be stored back at the end of the request. To fix this, systematically call set_page_data. diff -r aaa768e886ae -r 3432f0e2540d cubicweb/web/request.py --- a/cubicweb/web/request.py Tue Jul 12 12:21:41 2016 +0200 +++ b/cubicweb/web/request.py Wed Jul 06 20:14:55 2016 +0200 @@ -229,7 +229,7 @@ varmaker = self.get_page_data('rql_varmaker') if varmaker is None: varmaker = rqlvar_maker() - self.set_page_data('rql_varmaker', varmaker) + self.set_page_data('rql_varmaker', varmaker) return varmaker # input form parameters management ########################################