# HG changeset patch # User Adrien Di Mascio # Date 1348232639 -7200 # Node ID d28ccecb7bf5011c66f491b3bf4284443615053e # Parent 0d2fb4604265df74c596431b115ea80de42187b1 mock ``CWUser.prefered_language()`` on InternalManager objects. The recent split of patches for session refactoring broke this. diff -r 0d2fb4604265 -r d28ccecb7bf5 server/session.py --- a/server/session.py Fri Sep 14 14:15:39 2012 +0200 +++ b/server/session.py Fri Sep 21 15:03:59 2012 +0200 @@ -1213,6 +1213,9 @@ return 'en' return None + def prefered_language(self, language=None): + # mock CWUser.prefered_language, mainly for testing purpose + return self.property_value('ui.language') from logging import getLogger from cubicweb import set_log_methods