[Erp5-report] r26400 - /erp5/trunk/products/ERP5Type/patches/Localizer.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Sat Apr 11 01:54:23 CEST 2009
Author: yo
Date: Sat Apr 11 01:54:21 2009
New Revision: 26400
URL: http://svn.erp5.org?rev=26400&view=rev
Log:
Get Localizer from the portal. This is more efficient.
Modified:
erp5/trunk/products/ERP5Type/patches/Localizer.py
Modified: erp5/trunk/products/ERP5Type/patches/Localizer.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/patches/Localizer.py?rev=26400&r1=26399&r2=26400&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/patches/Localizer.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/patches/Localizer.py [utf8] Sat Apr 11 01:54:21 2009
@@ -91,7 +91,7 @@
# Placeless!
return msgid
- localizer = getattr(context, 'Localizer', None)
+ localizer = getattr(context.getPortalObject(), 'Localizer', None)
if localizer is None:
LOG('ERP5Type.patches.Localizer', ERROR, 'could not find a Localizer '
'object in acquisition context, message will not be translated')
More information about the Erp5-report
mailing list