web/request.py
branchstable
changeset 2245 7463e1a748dd
parent 2202 cb374512949f
child 2255 c346af0727ca
--- a/web/request.py	Thu Jul 02 12:59:16 2009 +0200
+++ b/web/request.py	Thu Jul 02 13:00:20 2009 +0200
@@ -91,7 +91,7 @@
         or an anonymous connection is open
         """
         super(CubicWebRequestBase, self).set_connection(cnx, user)
-        # get request language:
+        # set request language
         vreg = self.vreg
         if self.user:
             try:
@@ -114,6 +114,7 @@
     def set_language(self, lang):
         self._ = self.__ = self.translations[lang]
         self.lang = lang
+        self.cnx.set_session_props(lang=lang)
         self.debug('request language: %s', lang)
 
     # input form parameters management ########################################
@@ -336,7 +337,6 @@
                 params[name] = value
         params['eid'] = eid
         if len(params) < minparams:
-            print eid, params
             raise RequestError(self._('missing parameters for entity %s') % eid)
         return params