[connection] have rql_rewriter accession on Connection
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Tue, 25 Jun 2013 12:25:52 +0200
changeset 9083 fe254c803ed1
parent 9082 a2c6d908edeb
child 9084 e8e4dfc97670
[connection] have rql_rewriter accession on Connection Code expecting a session search the RQLRewriter on this attribute.
server/session.py
--- a/server/session.py	Thu Jun 27 11:19:42 2013 +0200
+++ b/server/session.py	Tue Jun 25 12:25:52 2013 +0200
@@ -483,6 +483,10 @@
     def data(self):
         return self._session_data
 
+    @property
+    def rql_rewriter(self):
+        return self._rewriter
+
     def get_shared_data(self, key, default=None, pop=False, txdata=False):
         """return value associated to `key` in session data"""
         if txdata: