[req] explicit `user` attribute
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Tue, 02 Apr 2013 16:06:22 +0200
changeset 8847 074f9f385f6b
parent 8846 f31e2d6f1b53
child 8848 08bb2dd18fd2
[req] explicit `user` attribute The `RequestSessionBase` object needs a `user` attribute. It is initialized by sub class, but having it explicitly declared is much cleaner.
req.py
--- a/req.py	Tue Apr 02 16:02:52 2013 +0200
+++ b/req.py	Tue Apr 02 16:06:22 2013 +0200
@@ -68,6 +68,7 @@
         # cache result of execution for (rql expr / eids),
         # should be emptied on commit/rollback of the server session / web
         # connection
+        self.user = None
         self.local_perm_cache = {}
         self._ = unicode