+
+class MultilangScopedSession(ScopedSession):
+ """Dispatches language selection to the attached Session."""
+
+ @property
+ def default_language(self):
+ return self.registry().default_language
+
+ @default_language.setter
+ def default_language(self, new):
+ self.registry().default_language = new
+
+ def remove(self):
+ del self.registry().default_language
+ super(MultilangScopedSession, self).remove()