**all_session_args)
session = MultilangScopedSession(sm)
- # Default to English. Warning, magic constant, blah blah. Trying to fetch
- # English here would kinda break on new databases. TODO still not an ideal
- # solution, I guess.
- session._default_language_id = 9
+ # Default to English. Warning, magic constant, messing with internals,
+ # blah blah. Trying to fetch English here would kinda break on new
+ # databases. TODO still not an ideal solution, I guess.
+ session.registry()._default_language_id = 9
return session
@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()