From f7960ab7ff2931cc73f7e4b896b0d4737ad1e9a0 Mon Sep 17 00:00:00 2001 From: helmutm Date: Thu, 22 Jan 2009 18:39:32 +0000 Subject: [PATCH] special handling for __ attributes git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@3173 fd906abe-77d9-0310-91a1-e0d9ade77398 --- i18n/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i18n/common.py b/i18n/common.py index 372a367..a435aec 100644 --- a/i18n/common.py +++ b/i18n/common.py @@ -130,7 +130,7 @@ class I18NAdapterBase(AdapterBase): return getI18nValue(self.context, '_' + attr, langInfo) def __setattr__(self, attr, value): - if attr in self._adapterAttributes: + if attr.startswith('__') or attr in self._adapterAttributes: object.__setattr__(self, attr, value) else: langInfo = attr in self.i18nAttributes and self.languageInfo or None