From ec96eaef74b440eb1eddf3388ed3199a28b35850 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Mon, 8 Jul 2013 01:21:28 -0500 Subject: [PATCH] auth log messages are not longer translated, thanks Anthony --- VERSION | 2 +- gluon/tools.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index da940884..e943d261 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.6.0-development+timestamp.2013.07.07.12.24.46 +Version 2.6.0-development+timestamp.2013.07.08.01.20.40 diff --git a/gluon/tools.py b/gluon/tools.py index b47b21f8..8ef57107 100644 --- a/gluon/tools.py +++ b/gluon/tools.py @@ -1747,6 +1747,9 @@ class Auth(object): else: user_id = None # user unknown vars = vars or {} + # log messages should not be translated + if type(descrption).__name__ == 'lazyT': + description = description.m self.table_event().insert( description=str(description % vars), origin=origin, user_id=user_id)