diff --git a/gluon/compileapp.py b/gluon/compileapp.py index c055f523..e7c2b7e8 100644 --- a/gluon/compileapp.py +++ b/gluon/compileapp.py @@ -429,7 +429,7 @@ def build_environment(request, response, session, store_current=True): c = environment['cache'] = Cache(request) # configure the validator to use the t translator - Validator.translator = T + Validator.translator = staticmethod(lambda text: None if text is None else str(T(text))) if store_current: current.globalenv = environment