[server/session] bring anonymous_connection back
authorRémi Cardona <remi.cardona@logilab.fr>
Thu, 02 Jul 2015 15:33:03 +0200
changeset 10485 9d2416a504d3
parent 10484 7f15552b7463
child 10486 d88fb5ccc8e6
[server/session] bring anonymous_connection back Fixes cubicweb-comment.
server/session.py
--- a/server/session.py	Thu Jul 02 15:31:48 2015 +0200
+++ b/server/session.py	Thu Jul 02 15:33:03 2015 +0200
@@ -472,6 +472,10 @@
     def ensure_cnx_set(self):
         yield
 
+    @property
+    def anonymous_connection(self):
+        return self.session.anonymous_session
+
     # Entity cache management #################################################
     #
     # The connection entity cache as held in cnx.transaction_data is removed at the