[connection] set language on new Connection for the internal manager
authorJulien Cristau <julien.cristau@logilab.fr>
Wed, 04 Jun 2014 17:56:54 +0200
changeset 9764 e81facdef9b5
parent 9763 d6c0f313d4b1
child 9765 5607ef9ab9f5
[connection] set language on new Connection for the internal manager For regular users this is handled by _set_user, but for internal connections (e.g. used for notifications) we need something else.
server/session.py
--- a/server/session.py	Tue Jun 03 15:07:41 2014 +0200
+++ b/server/session.py	Wed Jun 04 17:56:54 2014 +0200
@@ -517,6 +517,7 @@
         # other session utility
         if session.user.login == '__internal_manager__':
             self.user = session.user
+            self.set_language(self.user.prefered_language())
         else:
             self._set_user(session.user)