From d9460e53c6365d15bfe8d508e8a55f4d1b27e15f Mon Sep 17 00:00:00 2001 From: "P. Christeas" Date: Sat, 16 May 2009 23:10:39 +0300 Subject: [PATCH] Fix exporting of translations .tgz. bzr revid: p_christ@hol.gr-20090516201039-ecpi4fnw0ux0qt75 --- bin/tools/translate.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bin/tools/translate.py b/bin/tools/translate.py index 0af189b84c7..7bb61ac676e 100644 --- a/bin/tools/translate.py +++ b/bin/tools/translate.py @@ -461,10 +461,7 @@ def trans_generate(lang, modules, dbname=None): def_params = { 'string': ('wizard_field', lambda s: [encode(s)]), - 'selection': ('selection', lambda s: [encode(e[1]) for e in - (not callable(s) and s) or - (callable(s) and s(None, cr, uid, {})) - or [] ]), + 'selection': ('selection', lambda s: [encode(e[1]) for e in ((not callable(s)) and s or [])] ), 'help': ('help', lambda s: [encode(s)]), }